diff options
Diffstat (limited to 'tlscommon.c')
-rw-r--r-- | tlscommon.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tlscommon.c b/tlscommon.c index 842b955..d2453be 100644 --- a/tlscommon.c +++ b/tlscommon.c @@ -335,6 +335,23 @@ SSL_CTX *tlsgetctx(uint8_t type, struct tls *t) { return NULL; } +void tlsreloadcrls() { + struct tls *conf; + struct hash_entry *entry; + + for(entry = hash_first(tlsconfs); entry; entry = hash_next(entry)) { + conf = (struct tls *)entry->data; +#ifdef RADPROT_TLS + if(conf->tlsctx) + tlsaddcacrl(conf->tlsctx, conf); +#endif +#ifdef RADPROT_DTLS + if(conf->dtlsctx) + tlsaddcacrl(conf->dtlsctx, conf); +#endif + } +} + X509 *verifytlscert(SSL *ssl) { X509 *cert; unsigned long error; |