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/libtls/Makefile | |
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/libtls/Makefile')
-rw-r--r-- | src/lib/libtls/Makefile | 3 |
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 | ||
3 | CFLAGS+= -Wall -Werror -Wimplicit | 3 | CFLAGS+= -Wall -Werror -Wimplicit |
4 | CFLAGS+= -DLIBRESSL_INTERNAL | 4 | CFLAGS+= -DLIBRESSL_INTERNAL |
@@ -15,6 +15,7 @@ HDRS= tls.h | |||
15 | SRCS= tls.c \ | 15 | SRCS= 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 |