summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2016-04-02 16:47:48 -0400
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-04-07 14:41:34 -0400
commitc636c1c470fd2b4b0cb546e6ee85971375e42ec1 (patch)
tree68c9a306d606ae2bae3a77ee677999209ccdd7b4 /ssl/ssl_lib.c
parent6afef8b1fb679df7d6a8606d713192c9907b1890 (diff)
Fix client verify mode to check SSL_VERIFY_PEER
The original check for != SSL_VERIFY_NONE can give surprising results when flags SSL_VERIFY_PEER is not set, but other flags are. Note that SSL_VERIFY_NONE (0) is not a flag bit, it is rather the absense of all other flag bits. Signed-off-by: Rob Percival <robpercival@google.com> Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'ssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions