diff options
Diffstat (limited to 'src/ssl_ca.c')
-rw-r--r-- | src/ssl_ca.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ssl_ca.c b/src/ssl_ca.c new file mode 100644 index 0000000..a6ab523 --- /dev/null +++ b/src/ssl_ca.c @@ -0,0 +1,11 @@ +#include "ucspissl.h" + +int ssl_ca(SSL_CTX *ctx,const char *certfile,const char *certdir,int d) +{ + if (!SSL_CTX_load_verify_locations(ctx,certfile,certdir)) return 0; + + SSL_CTX_set_verify_depth(ctx,d); + + return 1; +} + |