diff options
| author | jsing <> | 2017-07-06 17:12:22 +0000 |
|---|---|---|
| committer | jsing <> | 2017-07-06 17:12:22 +0000 |
| commit | 98d8f250ae4bc4d9b4a4f49d8df340640852319b (patch) | |
| tree | b0d09612d5975b84d46270853c8da03a6d034575 /src/lib/libtls/tls.h | |
| parent | dae2542cf4dc008b3b61b507d9ee18993ba9def4 (diff) | |
| download | openbsd-98d8f250ae4bc4d9b4a4f49d8df340640852319b.tar.gz openbsd-98d8f250ae4bc4d9b4a4f49d8df340640852319b.tar.bz2 openbsd-98d8f250ae4bc4d9b4a4f49d8df340640852319b.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); |
