diff options
author | jsing <> | 2015-09-11 11:28:01 +0000 |
---|---|---|
committer | jsing <> | 2015-09-11 11:28:01 +0000 |
commit | 368b501095ffe62862d468562cfaf9d1012ca99c (patch) | |
tree | 122bc4c787f76caf0f4eb0c1dd4c691818a0adca /src/lib/libcrypto/crypto | |
parent | 42bff14389893c2dd1a5b78696866d589b5aac93 (diff) | |
download | openbsd-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/libcrypto/crypto')
0 files changed, 0 insertions, 0 deletions