diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2012-10-04 17:46:23 +0000 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2012-10-04 17:46:23 +0000 |
| commit | 76e675cb49c973c62e5107f2d36330941f3888e7 (patch) | |
| tree | 18a91c5bc53c9dd33368997b77796d568cbd42a1 /Cryptlib/OpenSSL/crypto/conf | |
| parent | b54fc10a6bd435e373bb448a6056ef47d628b231 (diff) | |
| download | efi-boot-shim-76e675cb49c973c62e5107f2d36330941f3888e7.tar.gz efi-boot-shim-76e675cb49c973c62e5107f2d36330941f3888e7.zip | |
debian/patches/prototypes: Include missing prototypes, and disable
use of BIO_new_file.
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/conf')
| -rwxr-xr-x | Cryptlib/OpenSSL/crypto/conf/conf_def.c | 2 | ||||
| -rwxr-xr-x | Cryptlib/OpenSSL/crypto/conf/conf_lib.c | 2 | ||||
| -rwxr-xr-x | Cryptlib/OpenSSL/crypto/conf/conf_sap.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/Cryptlib/OpenSSL/crypto/conf/conf_def.c b/Cryptlib/OpenSSL/crypto/conf/conf_def.c index 3c58936d..f6082fbc 100755 --- a/Cryptlib/OpenSSL/crypto/conf/conf_def.c +++ b/Cryptlib/OpenSSL/crypto/conf/conf_def.c @@ -186,11 +186,13 @@ static int def_load(CONF *conf, const char *name, long *line) int ret; BIO *in=NULL; +#ifndef OPENSSL_NO_STDIO #ifdef OPENSSL_SYS_VMS in=BIO_new_file(name, "r"); #else in=BIO_new_file(name, "rb"); #endif +#endif if (in == NULL) { if (ERR_GET_REASON(ERR_peek_last_error()) == BIO_R_NO_SUCH_FILE) diff --git a/Cryptlib/OpenSSL/crypto/conf/conf_lib.c b/Cryptlib/OpenSSL/crypto/conf/conf_lib.c index 2a3399d2..7f54d3d8 100755 --- a/Cryptlib/OpenSSL/crypto/conf/conf_lib.c +++ b/Cryptlib/OpenSSL/crypto/conf/conf_lib.c @@ -92,11 +92,13 @@ LHASH *CONF_load(LHASH *conf, const char *file, long *eline) LHASH *ltmp; BIO *in=NULL; +#ifndef OPENSSL_NO_STDIO #ifdef OPENSSL_SYS_VMS in=BIO_new_file(file, "r"); #else in=BIO_new_file(file, "rb"); #endif +#endif if (in == NULL) { CONFerr(CONF_F_CONF_LOAD,ERR_R_SYS_LIB); diff --git a/Cryptlib/OpenSSL/crypto/conf/conf_sap.c b/Cryptlib/OpenSSL/crypto/conf/conf_sap.c index 760dc263..35f4a272 100755 --- a/Cryptlib/OpenSSL/crypto/conf/conf_sap.c +++ b/Cryptlib/OpenSSL/crypto/conf/conf_sap.c @@ -93,12 +93,14 @@ void OPENSSL_config(const char *config_name) { BIO *bio_err; ERR_load_crypto_strings(); +#ifndef OPENSSL_NO_STDIO if ((bio_err=BIO_new_fp(stderr, BIO_NOCLOSE)) != NULL) { BIO_printf(bio_err,"Auto configuration failed\n"); ERR_print_errors(bio_err); BIO_free(bio_err); } +#endif exit(1); } |
