summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/crypto/getentropy_netbsd.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-09-11 11:28:01 +0000
committerjsing <jsing@openbsd.org>2015-09-11 11:28:01 +0000
commita0ec9d6b47b7d2a588dcf12d269e75e9d6b79964 (patch)
tree04b63bcaf026d00786256895f09911f4dbeec28c /lib/libcrypto/crypto/getentropy_netbsd.c
parentPrefer <fcntl.h> over <sys/fcntl.h> (diff)
downloadwireguard-openbsd-a0ec9d6b47b7d2a588dcf12d269e75e9d6b79964.tar.xz
wireguard-openbsd-a0ec9d6b47b7d2a588dcf12d269e75e9d6b79964.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 'lib/libcrypto/crypto/getentropy_netbsd.c')
0 files changed, 0 insertions, 0 deletions