summaryrefslogtreecommitdiff
path: root/src/lib/libressl/ressl.h
diff options
context:
space:
mode:
authorjsing <>2014-07-13 22:13:52 +0000
committerjsing <>2014-07-13 22:13:52 +0000
commit734069c418dd5db326e494ffe7552276336252b5 (patch)
tree5883e31fe626c0a75749f92ee5185b14217574c0 /src/lib/libressl/ressl.h
parent9e28eca16f16dae38f8957111772bbdec58376c9 (diff)
downloadopenbsd-734069c418dd5db326e494ffe7552276336252b5.tar.gz
openbsd-734069c418dd5db326e494ffe7552276336252b5.tar.bz2
openbsd-734069c418dd5db326e494ffe7552276336252b5.zip
Use a single ressl.h header file.
Discussed with beck@ and tedu@.
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);