0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02:00

ircd::net: Add traps under reject()s.

This commit is contained in:
Jason Volk 2019-04-16 19:17:41 -07:00
parent 903a6e7f57
commit 3b832db9a4

View file

@ -3340,7 +3340,7 @@ noexcept try
default:
reject();
break;
__builtin_unreachable();
case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
assert(openssl::get_error_depth(stctx) == 0);
@ -3348,7 +3348,7 @@ noexcept try
return true;
reject();
break;
__builtin_unreachable();
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
@ -3358,14 +3358,14 @@ noexcept try
return true;
reject();
break;
__builtin_unreachable();
case X509_V_ERR_CERT_HAS_EXPIRED:
if(opts.allow_expired)
return true;
reject();
break;
__builtin_unreachable();
}
const bool verify_common_name