summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2021-02-20 09:43:29 +0000
committerjsing <jsing@openbsd.org>2021-02-20 09:43:29 +0000
commitc7716c225dcbd54f5b35d3dca84dbe38706cf794 (patch)
treec8f3f3b472f3d06d18cca09e8097038bf21e3d1c /lib/libssl/ssl_both.c
parentAdd DTLSv1.2 methods. (diff)
downloadwireguard-openbsd-c7716c225dcbd54f5b35d3dca84dbe38706cf794.tar.xz
wireguard-openbsd-c7716c225dcbd54f5b35d3dca84dbe38706cf794.zip
Return a min/max version of zero if set to zero.
OpenSSL's SSL{_CTX,}_get_{min,max}_proto_version() return a version of zero if the minimum or maximum has been set to zero (which means the minimum or maximum version supported by the method). Previously we returned the minimum or maximum version supported by the method, instead of zero. Match OpenSSL's behaviour by using shadow variables. Discussed with tb@
Diffstat (limited to 'lib/libssl/ssl_both.c')
0 files changed, 0 insertions, 0 deletions