Permalink
Browse files

Merge pull request #1156 from grapenut/fix-ssl-client-certificate-check

changed SSL_VERIFY_PEER to SSL_VERIFY_NONE whenever client certificat…
  • Loading branch information...
shawnw committed Jan 11, 2018
2 parents fcd8964 + 116a662 commit 518e58b04702b667923e1b1b1f915179ae1209eb
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 518e58b

Please sign in to comment.