summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/ASN1_UNIVERSALSTRING_to_string.3
diff options
context:
space:
mode:
authortb <>2021-11-14 22:31:29 +0000
committertb <>2021-11-14 22:31:29 +0000
commita4c3c5d1a6bfbff90627fab679b764de5a8028cf (patch)
tree4820be7a499bbd3da441800bc5d0eaa3a2fd64d3 /src/lib/libcrypto/man/ASN1_UNIVERSALSTRING_to_string.3
parent8bd873cae83f056f2d372ab2cb290a5dda887503 (diff)
downloadopenbsd-a4c3c5d1a6bfbff90627fab679b764de5a8028cf.tar.gz
openbsd-a4c3c5d1a6bfbff90627fab679b764de5a8028cf.tar.bz2
openbsd-a4c3c5d1a6bfbff90627fab679b764de5a8028cf.zip
Fix a strange check in the auto DH codepath
The code assumes that the server certificate has an RSA key and bases the calculation of the size of the ephemeral DH key on this assumption. So instead of checking whether we have any key by inspecting the dh part of the union, let's check that we actually have an RSA key. While here, make sure that its length is non-negative. ok jsing
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_UNIVERSALSTRING_to_string.3')
0 files changed, 0 insertions, 0 deletions