summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/engine
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-10-04 17:46:23 +0000
committerSteve Langasek <steve.langasek@canonical.com>2012-10-04 17:46:23 +0000
commit76e675cb49c973c62e5107f2d36330941f3888e7 (patch)
tree18a91c5bc53c9dd33368997b77796d568cbd42a1 /Cryptlib/OpenSSL/crypto/engine
parentb54fc10a6bd435e373bb448a6056ef47d628b231 (diff)
downloadefi-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/engine')
-rwxr-xr-xCryptlib/OpenSSL/crypto/engine/eng_openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cryptlib/OpenSSL/crypto/engine/eng_openssl.c b/Cryptlib/OpenSSL/crypto/engine/eng_openssl.c
index 7c139ae2..f1307039 100755
--- a/Cryptlib/OpenSSL/crypto/engine/eng_openssl.c
+++ b/Cryptlib/OpenSSL/crypto/engine/eng_openssl.c
@@ -374,11 +374,15 @@ static EVP_PKEY *openssl_load_privkey(ENGINE *eng, const char *key_id,
BIO *in;
EVP_PKEY *key;
fprintf(stderr, "(TEST_ENG_OPENSSL_PKEY)Loading Private key %s\n", key_id);
+#ifndef OPENSSL_NO_STDIO
in = BIO_new_file(key_id, "r");
if (!in)
return NULL;
key = PEM_read_bio_PrivateKey(in, NULL, 0, NULL);
BIO_free(in);
+#else
+ return NULL;
+#endif
return key;
}
#endif