summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_req.c
diff options
context:
space:
mode:
authortb <>2022-08-17 18:51:47 +0000
committertb <>2022-08-17 18:51:47 +0000
commitc54903f2a71d453922361378bf5be43319fa74f0 (patch)
treee275d061be29fbe1483246fb3bb20e5c0c413f0a /src/lib/libcrypto/x509/x509_req.c
parent1c5609b103eb8a5e47488306e9b34ff2021b41fa (diff)
downloadopenbsd-c54903f2a71d453922361378bf5be43319fa74f0.tar.gz
openbsd-c54903f2a71d453922361378bf5be43319fa74f0.tar.bz2
openbsd-c54903f2a71d453922361378bf5be43319fa74f0.zip
Implement the SSL_CTRL_GET_SHARED_GROUP control
This implements SSL_get_shared_{curve,group}() in a bug-compatible fashion with OpenSSL. This is your average OpenSSL-style overloaded parameter API where n >= 0 means "return the n-th shared group's NID" (as if anyone possibly ever cared about the case n > 0) and n == -1 means "return the number of shared groups". There is also an undocumented case n == -2 for Suite B profile support which falls back to n == 0 in case Suite B profile support is disabled, so n == -2 is the same as n == 0 in LibreSSL. The API also returns 0 for error, which is indistinguishable from a count of 0 shared groups but coincides with NID_undef. Contrary to claims in the documentation, the API doesn't actually return -1 for clients, rather it returns 0. Obviously this entire exercise is pretty useless, but since somebody exposed it because they could and someone else used it because they could we need to provide it. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_req.c')
0 files changed, 0 insertions, 0 deletions