ucspi-ssl  0.12.7
ucspi-ssl
ssl_ca.c
Go to the documentation of this file.
1 #include "ucspissl.h"
2 
3 int ssl_ca(SSL_CTX *ctx,const char *certfile,const char *certdir,int d)
4 {
5  if (!SSL_CTX_load_verify_locations(ctx,certfile,certdir)) return 0;
6 
7  SSL_CTX_set_verify_depth(ctx,d);
8 
9  return 1;
10 }
11 
int ssl_ca(SSL_CTX *ctx, const char *certfile, const char *certdir, int d)
Definition: ssl_ca.c:3
const char * certfile
Definition: sslclient.c:104
SSL_CTX * ctx
Definition: sslclient.c:103
Header file to be used with sqmail; previously called ssl.h. (name clash)