diff options
| author | jsing <> | 2016-11-11 14:02:24 +0000 |
|---|---|---|
| committer | jsing <> | 2016-11-11 14:02:24 +0000 |
| commit | 649a0a6662a20285ecc9abb6ad4df3f56f4b0726 (patch) | |
| tree | 504fc58fe886a67b537ee2b43b1a736f9a752c98 /src/lib/libtls/tls.h | |
| parent | 264fe0b9bed327a70d7f6d57cf795074b93bae92 (diff) | |
| download | openbsd-649a0a6662a20285ecc9abb6ad4df3f56f4b0726.tar.gz openbsd-649a0a6662a20285ecc9abb6ad4df3f56f4b0726.tar.bz2 openbsd-649a0a6662a20285ecc9abb6ad4df3f56f4b0726.zip | |
Change the return value of tls_config_set_protocols() and
tls_config_set_verify_depth() from void to int. This makes them consistent
with all other tls_config_set_* functions and will allow for call time
validation to be implemented.
Rides libtls major bump.
ok beck@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libtls/tls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 2f8c721a15..edf7343f2f 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls.h,v 1.41 2016/11/05 15:13:26 beck Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.42 2016/11/11 14:02:24 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -108,8 +108,8 @@ int tls_config_set_keypair_mem(struct tls_config *_config, const uint8_t *_cert, | |||
| 108 | size_t _cert_len, const uint8_t *_key, size_t _key_len); | 108 | size_t _cert_len, const uint8_t *_key, size_t _key_len); |
| 109 | int tls_config_set_ocsp_staple_mem(struct tls_config *_config, char *_staple, size_t _len); | 109 | int tls_config_set_ocsp_staple_mem(struct tls_config *_config, char *_staple, size_t _len); |
| 110 | int tls_config_set_ocsp_staple_file(struct tls_config *_config, const char *_staple_file); | 110 | int tls_config_set_ocsp_staple_file(struct tls_config *_config, const char *_staple_file); |
| 111 | void tls_config_set_protocols(struct tls_config *_config, uint32_t _protocols); | 111 | int tls_config_set_protocols(struct tls_config *_config, uint32_t _protocols); |
| 112 | void tls_config_set_verify_depth(struct tls_config *_config, int _verify_depth); | 112 | int tls_config_set_verify_depth(struct tls_config *_config, int _verify_depth); |
| 113 | 113 | ||
| 114 | void tls_config_prefer_ciphers_client(struct tls_config *_config); | 114 | void tls_config_prefer_ciphers_client(struct tls_config *_config); |
| 115 | void tls_config_prefer_ciphers_server(struct tls_config *_config); | 115 | void tls_config_prefer_ciphers_server(struct tls_config *_config); |
