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/openssl/crypto.h | |
parent | 7d37818dacc87c21dfc9d2def5014657344875e3 (diff) | |
download | openssl-dae00d631fdaed48d88c454864abbd6ce99c63d6.zip openssl-dae00d631fdaed48d88c454864abbd6ce99c63d6.tar.gz openssl-dae00d631fdaed48d88c454864abbd6ce99c63d6.tar.bz2 |
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/openssl/crypto.h')
-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 c98b99b..c4b31d9 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); |