diff options
Diffstat (limited to 'src/lib/libressl/ressl_config.c')
| -rw-r--r-- | src/lib/libressl/ressl_config.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/lib/libressl/ressl_config.c b/src/lib/libressl/ressl_config.c index 6205b6c559..1509b5aeba 100644 --- a/src/lib/libressl/ressl_config.c +++ b/src/lib/libressl/ressl_config.c | |||
| @@ -63,21 +63,21 @@ ressl_config_set_ca_path(struct ressl_config *config, char *ca_path) | |||
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | void | 65 | void |
| 66 | ressl_config_set_ciphers(struct ressl_config *config, char *ciphers) | 66 | ressl_config_set_cert_file(struct ressl_config *config, char *cert_file) |
| 67 | { | 67 | { |
| 68 | config->ciphers = ciphers; | 68 | config->cert_file = cert_file; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | void | 71 | void |
| 72 | ressl_config_insecure_no_verify(struct ressl_config *config) | 72 | ressl_config_set_ciphers(struct ressl_config *config, char *ciphers) |
| 73 | { | 73 | { |
| 74 | config->verify = 0; | 74 | config->ciphers = ciphers; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | void | 77 | void |
| 78 | ressl_config_verify(struct ressl_config *config) | 78 | ressl_config_set_key_file(struct ressl_config *config, char *key_file) |
| 79 | { | 79 | { |
| 80 | config->verify = 1; | 80 | config->key_file = key_file; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | void | 83 | void |
| @@ -85,3 +85,15 @@ 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 | } |
| 88 | |||
| 89 | void | ||
| 90 | ressl_config_insecure_no_verify(struct ressl_config *config) | ||
| 91 | { | ||
| 92 | config->verify = 0; | ||
| 93 | } | ||
| 94 | |||
| 95 | void | ||
| 96 | ressl_config_verify(struct ressl_config *config) | ||
| 97 | { | ||
| 98 | config->verify = 1; | ||
| 99 | } | ||
