diff options
author | jsing <> | 2014-07-13 22:31:42 +0000 |
---|---|---|
committer | jsing <> | 2014-07-13 22:31:42 +0000 |
commit | 12562f20bce4aa5f48a40c04ebb898cff187e76c (patch) | |
tree | 7c9ada89477e0f9843a4f17c6279b22e01776a60 /src | |
parent | 734069c418dd5db326e494ffe7552276336252b5 (diff) | |
download | openbsd-12562f20bce4aa5f48a40c04ebb898cff187e76c.tar.gz openbsd-12562f20bce4aa5f48a40c04ebb898cff187e76c.tar.bz2 openbsd-12562f20bce4aa5f48a40c04ebb898cff187e76c.zip |
Rename various configuration handling functions.
Requested by and discussed with tedu@.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libressl/ressl.h | 15 | ||||
-rw-r--r-- | src/lib/libressl/ressl_config.c | 12 |
2 files changed, 14 insertions, 13 deletions
diff --git a/src/lib/libressl/ressl.h b/src/lib/libressl/ressl.h index d044cd4fdc..a1d220028f 100644 --- a/src/lib/libressl/ressl.h +++ b/src/lib/libressl/ressl.h | |||
@@ -27,13 +27,14 @@ const char *ressl_error(struct ressl *ctx); | |||
27 | struct ressl_config *ressl_config_new(void); | 27 | struct ressl_config *ressl_config_new(void); |
28 | void ressl_config_free(struct ressl_config *config); | 28 | void ressl_config_free(struct ressl_config *config); |
29 | 29 | ||
30 | void ressl_config_ca_file(struct ressl_config *config, char *ca_file); | 30 | void ressl_config_set_ca_file(struct ressl_config *config, char *ca_file); |
31 | void ressl_config_ca_path(struct ressl_config *config, char *ca_path); | 31 | void ressl_config_set_ca_path(struct ressl_config *config, char *ca_path); |
32 | void ressl_config_ciphers(struct ressl_config *config, char *ciphers); | 32 | void ressl_config_set_ciphers(struct ressl_config *config, char *ciphers); |
33 | void ressl_config_verify_depth(struct ressl_config *config, int verify_depth); | 33 | void ressl_config_set_verify_depth(struct ressl_config *config, |
34 | 34 | int verify_depth); | |
35 | void ressl_config_insecure(struct ressl_config *config); | 35 | |
36 | void ressl_config_secure(struct ressl_config *config); | 36 | void ressl_config_insecure_no_verify(struct ressl_config *config); |
37 | void ressl_config_verify(struct ressl_config *config); | ||
37 | 38 | ||
38 | struct ressl *ressl_new(struct ressl_config *config); | 39 | struct ressl *ressl_new(struct ressl_config *config); |
39 | void ressl_reset(struct ressl *ctx); | 40 | void ressl_reset(struct ressl *ctx); |
diff --git a/src/lib/libressl/ressl_config.c b/src/lib/libressl/ressl_config.c index 3932b96add..ebca78e413 100644 --- a/src/lib/libressl/ressl_config.c +++ b/src/lib/libressl/ressl_config.c | |||
@@ -51,37 +51,37 @@ ressl_config_free(struct ressl_config *config) | |||
51 | } | 51 | } |
52 | 52 | ||
53 | void | 53 | void |
54 | ressl_config_ca_file(struct ressl_config *config, char *ca_file) | 54 | ressl_config_set_ca_file(struct ressl_config *config, char *ca_file) |
55 | { | 55 | { |
56 | config->ca_file = ca_file; | 56 | config->ca_file = ca_file; |
57 | } | 57 | } |
58 | 58 | ||
59 | void | 59 | void |
60 | ressl_config_ca_path(struct ressl_config *config, char *ca_path) | 60 | ressl_config_set_ca_path(struct ressl_config *config, char *ca_path) |
61 | { | 61 | { |
62 | config->ca_path = ca_path; | 62 | config->ca_path = ca_path; |
63 | } | 63 | } |
64 | 64 | ||
65 | void | 65 | void |
66 | ressl_config_ciphers(struct ressl_config *config, char *ciphers) | 66 | ressl_config_set_ciphers(struct ressl_config *config, char *ciphers) |
67 | { | 67 | { |
68 | config->ciphers = ciphers; | 68 | config->ciphers = ciphers; |
69 | } | 69 | } |
70 | 70 | ||
71 | void | 71 | void |
72 | ressl_config_insecure(struct ressl_config *config) | 72 | ressl_config_insecure_no_verify(struct ressl_config *config) |
73 | { | 73 | { |
74 | config->verify = 0; | 74 | config->verify = 0; |
75 | } | 75 | } |
76 | 76 | ||
77 | void | 77 | void |
78 | ressl_config_secure(struct ressl_config *config) | 78 | ressl_config_verify(struct ressl_config *config) |
79 | { | 79 | { |
80 | config->verify = 1; | 80 | config->verify = 1; |
81 | } | 81 | } |
82 | 82 | ||
83 | void | 83 | void |
84 | ressl_config_verify_depth(struct ressl_config *config, int verify_depth) | 84 | ressl_config_set_verify_depth(struct ressl_config *config, int verify_depth) |
85 | { | 85 | { |
86 | config->verify_depth = verify_depth; | 86 | config->verify_depth = verify_depth; |
87 | } | 87 | } |