summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_init.3
diff options
context:
space:
mode:
authorjsing <>2015-09-11 11:28:01 +0000
committerjsing <>2015-09-11 11:28:01 +0000
commit368b501095ffe62862d468562cfaf9d1012ca99c (patch)
tree122bc4c787f76caf0f4eb0c1dd4c691818a0adca /src/lib/libtls/tls_init.3
parent42bff14389893c2dd1a5b78696866d589b5aac93 (diff)
downloadopenbsd-368b501095ffe62862d468562cfaf9d1012ca99c.tar.gz
openbsd-368b501095ffe62862d468562cfaf9d1012ca99c.tar.bz2
openbsd-368b501095ffe62862d468562cfaf9d1012ca99c.zip
Provide tls_peer_cert_hash() which returns a hash of the raw certificate
that was presented by the peer. The hash used is currently SHA256, however since we prefix the result with the hash name, we can change this in the future as the need arises. The same output can be generated by using: h=$(openssl x509 -outform der -in mycert.crt | sha256) printf "SHA256:${h}\n" ok beck@
Diffstat (limited to 'src/lib/libtls/tls_init.3')
0 files changed, 0 insertions, 0 deletions