summaryrefslogtreecommitdiff
path: root/src/ssl_ca.c
blob: a6ab5239a7785e82e3299e0a9acde30e5a2a16de (plain)
1
2
3
4
5
6
7
8
9
10
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;
}