Skip to content

Commit 5d422c2

Browse files
committed
Enabled checks agains the CRL passed in parameter
1 parent 9dab177 commit 5d422c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/opts.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,13 @@ natsOptions_SetCATrustedCertificates(natsOptions *opts, const char *certs)
506506
"error adding CA CRL: %s",
507507
NATS_SSL_ERR_REASON_STRING);
508508
}
509+
510+
if ((s == NATS_OK) && (X509_STORE_set_flags(cts, X509_V_FLAG_CRL_CHECK) != 1))
511+
{
512+
s = nats_setError(NATS_SSL_ERROR,
513+
"error enabling CA CRL: %s",
514+
NATS_SSL_ERR_REASON_STRING);
515+
}
509516
}
510517
}
511518

0 commit comments

Comments
 (0)