summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/engine/eng_openssl.c
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2015-05-10 10:03:20 -0400
committerMathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>2015-05-10 10:03:20 -0400
commit86a08c30b489047d29cd84188c30fe2bc13ff1e9 (patch)
treeecfef5f1808b45a6e28b6524d70a3b24d40170fd /Cryptlib/OpenSSL/crypto/engine/eng_openssl.c
parent37358ddb1cdda9a677d34f0635113bf2d542e025 (diff)
downloadefi-boot-shim-86a08c30b489047d29cd84188c30fe2bc13ff1e9.tar.gz
efi-boot-shim-86a08c30b489047d29cd84188c30fe2bc13ff1e9.zip
Reapplying all patches
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/engine/eng_openssl.c')
-rw-r--r--Cryptlib/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 100644
--- 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