summaryrefslogtreecommitdiff
path: root/src/lib/libressl/ressl.h
diff options
context:
space:
mode:
authortedu <>2014-09-28 06:24:00 +0000
committertedu <>2014-09-28 06:24:00 +0000
commite7bb93c6df18cb8454fa5fc190c887e34f3a324b (patch)
tree572254b10f62c9115d52cc5b067e5bf17ecb93ce /src/lib/libressl/ressl.h
parentca6cdf7e807ad940eb851dfee98ddff6e4052816 (diff)
downloadopenbsd-e7bb93c6df18cb8454fa5fc190c887e34f3a324b.tar.gz
openbsd-e7bb93c6df18cb8454fa5fc190c887e34f3a324b.tar.bz2
openbsd-e7bb93c6df18cb8454fa5fc190c887e34f3a324b.zip
revamp the config interface to own memory. easier to use correctly without
caller worrying about leaks or lifetimes. after feedback from jsing
Diffstat (limited to 'src/lib/libressl/ressl.h')
-rw-r--r--src/lib/libressl/ressl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libressl/ressl.h b/src/lib/libressl/ressl.h
index ebd589313b..192f863f44 100644
--- a/src/lib/libressl/ressl.h
+++ b/src/lib/libressl/ressl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ressl.h,v 1.13 2014/08/27 10:46:53 reyk Exp $ */ 1/* $OpenBSD: ressl.h,v 1.14 2014/09/28 06:24:00 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -31,15 +31,15 @@ const char *ressl_error(struct ressl *ctx);
31struct ressl_config *ressl_config_new(void); 31struct ressl_config *ressl_config_new(void);
32void ressl_config_free(struct ressl_config *config); 32void ressl_config_free(struct ressl_config *config);
33 33
34void ressl_config_set_ca_file(struct ressl_config *config, char *ca_file); 34int ressl_config_set_ca_file(struct ressl_config *config, const char *ca_file);
35void ressl_config_set_ca_path(struct ressl_config *config, char *ca_path); 35int ressl_config_set_ca_path(struct ressl_config *config, const char *ca_path);
36void ressl_config_set_cert_file(struct ressl_config *config, char *cert_file); 36int ressl_config_set_cert_file(struct ressl_config *config, const char *cert_file);
37void ressl_config_set_cert_mem(struct ressl_config *config, char *cert, 37int ressl_config_set_cert_mem(struct ressl_config *config, const uint8_t *cert,
38 size_t len); 38 size_t len);
39void ressl_config_set_ciphers(struct ressl_config *config, char *ciphers); 39int ressl_config_set_ciphers(struct ressl_config *config, const char *ciphers);
40int ressl_config_set_ecdhcurve(struct ressl_config *config, const char *); 40int ressl_config_set_ecdhcurve(struct ressl_config *config, const char *);
41void ressl_config_set_key_file(struct ressl_config *config, char *key_file); 41int ressl_config_set_key_file(struct ressl_config *config, const char *key_file);
42void ressl_config_set_key_mem(struct ressl_config *config, char *key, 42int ressl_config_set_key_mem(struct ressl_config *config, const uint8_t *key,
43 size_t len); 43 size_t len);
44void ressl_config_set_verify_depth(struct ressl_config *config, 44void ressl_config_set_verify_depth(struct ressl_config *config,
45 int verify_depth); 45 int verify_depth);