diff options
author | Matt Caswell <matt@openssl.org> | 2016-05-23 10:55:54 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-23 23:30:24 +0100 |
commit | dae00d631fdaed48d88c454864abbd6ce99c63d6 (patch) | |
tree | c1653e169ee174f1ad7a7a252134672e48398329 /include | |
parent | 7d37818dacc87c21dfc9d2def5014657344875e3 (diff) |
Add error return for OPENSSL_INIT_set_config_filename()
The OPENSSL_INIT_set_config_filename() function can fail so ensure that it
provides a suitable error code.
GitHub Issue #920
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/crypto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index c98b99b473..c4b31d92f3 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h @@ -380,8 +380,8 @@ void OPENSSL_thread_stop(void); /* Low-level control of initialization */ OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void); #ifndef OPENSSL_NO_STDIO -void OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings, - const char *config_file); +int OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings, + const char *config_file); #endif void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings); |