summaryrefslogtreecommitdiff
path: root/src/lib/libtls/Makefile
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/libtls/Makefile
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/libtls/Makefile')
-rw-r--r--src/lib/libtls/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libtls/Makefile b/src/lib/libtls/Makefile
index 4b6b34c283..0e3329589e 100644
--- a/src/lib/libtls/Makefile
+++ b/src/lib/libtls/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.14 2015/09/11 07:07:23 jmc Exp $ 1# $OpenBSD: Makefile,v 1.15 2015/09/11 11:28:01 jsing Exp $
2 2
3CFLAGS+= -Wall -Werror -Wimplicit 3CFLAGS+= -Wall -Werror -Wimplicit
4CFLAGS+= -DLIBRESSL_INTERNAL 4CFLAGS+= -DLIBRESSL_INTERNAL
@@ -15,6 +15,7 @@ HDRS= tls.h
15SRCS= tls.c \ 15SRCS= tls.c \
16 tls_client.c \ 16 tls_client.c \
17 tls_config.c \ 17 tls_config.c \
18 tls_peer.c \
18 tls_server.c \ 19 tls_server.c \
19 tls_util.c \ 20 tls_util.c \
20 tls_verify.c 21 tls_verify.c