summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto/getentropy_linux.c
diff options
context:
space:
mode:
authorjsing <>2015-09-11 11:28:01 +0000
committerjsing <>2015-09-11 11:28:01 +0000
commit0dd7e6b53207a35f05ffb30e367e39644d20f096 (patch)
tree122bc4c787f76caf0f4eb0c1dd4c691818a0adca /src/lib/libcrypto/crypto/getentropy_linux.c
parentab250a383adcc228148d2bd9bb6245d78932a1c9 (diff)
downloadopenbsd-0dd7e6b53207a35f05ffb30e367e39644d20f096.tar.gz
openbsd-0dd7e6b53207a35f05ffb30e367e39644d20f096.tar.bz2
openbsd-0dd7e6b53207a35f05ffb30e367e39644d20f096.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/getentropy_linux.c')
0 files changed, 0 insertions, 0 deletions