mirror of
https://github.com/open5gs/open5gs.git
synced 2026-10-19 09:44:04 +00:00
sbi: reject expired client certificates in verify_callback
This commit is contained in:
parent
959c30d51b
commit
f125568440
1 changed files with 0 additions and 5 deletions
|
|
@ -330,11 +330,6 @@ static int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)
|
|||
if (!preverify_ok) {
|
||||
int err = X509_STORE_CTX_get_error(ctx);
|
||||
int depth = X509_STORE_CTX_get_error_depth(ctx);
|
||||
if (err == X509_V_ERR_CERT_HAS_EXPIRED && depth == 0) {
|
||||
ogs_error("The client certificate has expired, but is accepted by "
|
||||
"configuration");
|
||||
return 1;
|
||||
}
|
||||
ogs_error("client certificate verify error:num=%d:%s:depth=%d",
|
||||
err, X509_verify_cert_error_string(err), depth);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue