diff options
| author | tedu <> | 2014-09-28 06:24:00 +0000 |
|---|---|---|
| committer | tedu <> | 2014-09-28 06:24:00 +0000 |
| commit | e7bb93c6df18cb8454fa5fc190c887e34f3a324b (patch) | |
| tree | 572254b10f62c9115d52cc5b067e5bf17ecb93ce /src/lib/libressl/ressl.h | |
| parent | ca6cdf7e807ad940eb851dfee98ddff6e4052816 (diff) | |
| download | openbsd-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.h | 16 |
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); | |||
| 31 | struct ressl_config *ressl_config_new(void); | 31 | struct ressl_config *ressl_config_new(void); |
| 32 | void ressl_config_free(struct ressl_config *config); | 32 | void ressl_config_free(struct ressl_config *config); |
| 33 | 33 | ||
| 34 | void ressl_config_set_ca_file(struct ressl_config *config, char *ca_file); | 34 | int ressl_config_set_ca_file(struct ressl_config *config, const char *ca_file); |
| 35 | void ressl_config_set_ca_path(struct ressl_config *config, char *ca_path); | 35 | int ressl_config_set_ca_path(struct ressl_config *config, const char *ca_path); |
| 36 | void ressl_config_set_cert_file(struct ressl_config *config, char *cert_file); | 36 | int ressl_config_set_cert_file(struct ressl_config *config, const char *cert_file); |
| 37 | void ressl_config_set_cert_mem(struct ressl_config *config, char *cert, | 37 | int ressl_config_set_cert_mem(struct ressl_config *config, const uint8_t *cert, |
| 38 | size_t len); | 38 | size_t len); |
| 39 | void ressl_config_set_ciphers(struct ressl_config *config, char *ciphers); | 39 | int ressl_config_set_ciphers(struct ressl_config *config, const char *ciphers); |
| 40 | int ressl_config_set_ecdhcurve(struct ressl_config *config, const char *); | 40 | int ressl_config_set_ecdhcurve(struct ressl_config *config, const char *); |
| 41 | void ressl_config_set_key_file(struct ressl_config *config, char *key_file); | 41 | int ressl_config_set_key_file(struct ressl_config *config, const char *key_file); |
| 42 | void ressl_config_set_key_mem(struct ressl_config *config, char *key, | 42 | int ressl_config_set_key_mem(struct ressl_config *config, const uint8_t *key, |
| 43 | size_t len); | 43 | size_t len); |
| 44 | void ressl_config_set_verify_depth(struct ressl_config *config, | 44 | void ressl_config_set_verify_depth(struct ressl_config *config, |
| 45 | int verify_depth); | 45 | int verify_depth); |
