diff options
author | tb <> | 2024-12-10 08:40:30 +0000 |
---|---|---|
committer | tb <> | 2024-12-10 08:40:30 +0000 |
commit | b3d93b59d26fa80123892302071d566ee8f30930 (patch) | |
tree | 2542f39bf15e49eda926e59376de19e797b35c50 /src/usr.bin/openssl/ciphers.c | |
parent | c0f2dde01da58c00510ac95afabe0df82b7374ec (diff) | |
download | openbsd-b3d93b59d26fa80123892302071d566ee8f30930.tar.gz openbsd-b3d93b59d26fa80123892302071d566ee8f30930.tar.bz2 openbsd-b3d93b59d26fa80123892302071d566ee8f30930.zip |
Provide tls_peer_cert_common_name()
There is currently no sane way of getting your hands on the common name or
subject alternative name of the peer certificate from libtls. It is possible
to extract it from the peer cert's PEM by hand, but that way lies madness.
While the common name is close to being deprecated in the webpki, it is
still the de facto standard to identify client certs. It would be nice to
have a way to access the subject alternative names as well, but this is a
lot more difficult to expose in a clean and sane C interface due to its
multivaluedness.
Initial diff from henning, with input from beck, jsing and myself
henning and bluhm have plans of using this in syslogd.
ok beck
Diffstat (limited to 'src/usr.bin/openssl/ciphers.c')
0 files changed, 0 insertions, 0 deletions