summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL/crypto/asn1/a_verify.c
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2014-10-07 05:35:11 +0000
committerSteve Langasek <steve.langasek@canonical.com>2014-10-07 05:35:11 +0000
commit1e963007c0d9466726a8680e52a95955288d8927 (patch)
tree9345749af183fe511dfe6a24fb43b44a5feefcd9 /Cryptlib/OpenSSL/crypto/asn1/a_verify.c
parente34fca619d8a75f3b67d59d45cdd9db4da2342e6 (diff)
downloadefi-boot-shim-1e963007c0d9466726a8680e52a95955288d8927.tar.gz
efi-boot-shim-1e963007c0d9466726a8680e52a95955288d8927.zip
debian/patches/0001-Update-openssl-to-0.9.8za.patch: cherry-pick
openssl 0.9.8za in via upstream.
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/asn1/a_verify.c')
-rwxr-xr-xCryptlib/OpenSSL/crypto/asn1/a_verify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Cryptlib/OpenSSL/crypto/asn1/a_verify.c b/Cryptlib/OpenSSL/crypto/asn1/a_verify.c
index da3efaaf..7ded69b1 100755
--- a/Cryptlib/OpenSSL/crypto/asn1/a_verify.c
+++ b/Cryptlib/OpenSSL/crypto/asn1/a_verify.c
@@ -138,6 +138,12 @@ int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signat
unsigned char *buf_in=NULL;
int ret= -1,i,inl;
+ if (!pkey)
+ {
+ ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
+ return -1;
+ }
+
EVP_MD_CTX_init(&ctx);
i=OBJ_obj2nid(a->algorithm);
type=EVP_get_digestbyname(OBJ_nid2sn(i));