Permalink
Browse files

changed SSL_VERIFY_PEER to SSL_VERIFY_NONE whenever client certificat…

…es are not being checked
  • Loading branch information...
grapenut
grapenut committed Jan 10, 2018
1 parent fcd8964 commit 116a662ca756f07c9239961749a86dd67cfd11d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/myssl.c
View
@@ -175,7 +175,7 @@ ssl_init(char *private_key_file, char *ca_file, char *ca_dir,
SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT,
client_verify_callback);
else
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, client_verify_callback);
SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, client_verify_callback);
#if (OPENSSL_VERSION_NUMBER < 0x0090600fL)
SSL_CTX_set_verify_depth(ctx, 1);
#endif

0 comments on commit 116a662

Please sign in to comment.