diff options
author | jsing <> | 2017-07-06 17:12:22 +0000 |
---|---|---|
committer | jsing <> | 2017-07-06 17:12:22 +0000 |
commit | 40916534e3bc6be103b1cf19f2f976ccbed2b4ed (patch) | |
tree | b0d09612d5975b84d46270853c8da03a6d034575 /src/lib/libtls/tls.h | |
parent | a21f0c405df345f9ac6e331f71f09db8e340ca31 (diff) | |
download | openbsd-40916534e3bc6be103b1cf19f2f976ccbed2b4ed.tar.gz openbsd-40916534e3bc6be103b1cf19f2f976ccbed2b4ed.tar.bz2 openbsd-40916534e3bc6be103b1cf19f2f976ccbed2b4ed.zip |
Add support for providing CRLs to libtls - once a CRL is provided we
enable CRL checking for the full certificate chain.
Based on a diff from Jack Burton <jack at saosce dot com dot au>, thanks!
Discussed with beck@
Diffstat (limited to 'src/lib/libtls/tls.h')
-rw-r--r-- | src/lib/libtls/tls.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 4fad4518f2..1a6701b581 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.h,v 1.49 2017/05/06 20:57:45 jsing Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.50 2017/07/06 17:12:22 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -105,6 +105,9 @@ int tls_config_set_cert_file(struct tls_config *_config, | |||
105 | int tls_config_set_cert_mem(struct tls_config *_config, const uint8_t *_cert, | 105 | int tls_config_set_cert_mem(struct tls_config *_config, const uint8_t *_cert, |
106 | size_t _len); | 106 | size_t _len); |
107 | int tls_config_set_ciphers(struct tls_config *_config, const char *_ciphers); | 107 | int tls_config_set_ciphers(struct tls_config *_config, const char *_ciphers); |
108 | int tls_config_set_crl_file(struct tls_config *_config, const char *_crl_file); | ||
109 | int tls_config_set_crl_mem(struct tls_config *_config, const uint8_t *_crl, | ||
110 | size_t _len); | ||
108 | int tls_config_set_dheparams(struct tls_config *_config, const char *_params); | 111 | int tls_config_set_dheparams(struct tls_config *_config, const char *_params); |
109 | int tls_config_set_ecdhecurve(struct tls_config *_config, const char *_name); | 112 | int tls_config_set_ecdhecurve(struct tls_config *_config, const char *_name); |
110 | int tls_config_set_key_file(struct tls_config *_config, const char *_key_file); | 113 | int tls_config_set_key_file(struct tls_config *_config, const char *_key_file); |