summaryrefslogtreecommitdiff
path: root/src/lib/libressl/ressl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libressl/ressl.h')
-rw-r--r--src/lib/libressl/ressl.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libressl/ressl.h b/src/lib/libressl/ressl.h
index 5217a69c15..d044cd4fdc 100644
--- a/src/lib/libressl/ressl.h
+++ b/src/lib/libressl/ressl.h
@@ -17,14 +17,24 @@
17#ifndef HEADER_RESSL_H 17#ifndef HEADER_RESSL_H
18#define HEADER_RESSL_H 18#define HEADER_RESSL_H
19 19
20#include <ressl/ressl_config.h>
21
22struct ressl; 20struct ressl;
21struct ressl_config;
23 22
24int ressl_init(void); 23int ressl_init(void);
25 24
26const char *ressl_error(struct ressl *ctx); 25const char *ressl_error(struct ressl *ctx);
27 26
27struct ressl_config *ressl_config_new(void);
28void ressl_config_free(struct ressl_config *config);
29
30void ressl_config_ca_file(struct ressl_config *config, char *ca_file);
31void ressl_config_ca_path(struct ressl_config *config, char *ca_path);
32void ressl_config_ciphers(struct ressl_config *config, char *ciphers);
33void ressl_config_verify_depth(struct ressl_config *config, int verify_depth);
34
35void ressl_config_insecure(struct ressl_config *config);
36void ressl_config_secure(struct ressl_config *config);
37
28struct ressl *ressl_new(struct ressl_config *config); 38struct ressl *ressl_new(struct ressl_config *config);
29void ressl_reset(struct ressl *ctx); 39void ressl_reset(struct ressl *ctx);
30void ressl_free(struct ressl *ctx); 40void ressl_free(struct ressl *ctx);