diff options
Diffstat (limited to 'PICA_node.c')
| -rwxr-xr-x | PICA_node.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/PICA_node.c b/PICA_node.c index ae23bac..2bcc705 100755 --- a/PICA_node.c +++ b/PICA_node.c @@ -1035,6 +1035,7 @@ switch(ccl->state) int PICA_node_init() { struct sockaddr_in sd; +int ret; SSL_load_error_strings(); SSL_library_init(); @@ -1083,6 +1084,13 @@ ctx=SSL_CTX_new(TLSv1_method()); if (!ctx) ;//ERR_CHECK + +ret = SSL_CTX_load_verify_locations(ctx, nodecfg.CA_cert_file, 0); + +;//ERR_CHECK + +SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL); + return 1; } |
