#include <time.h>
#include "cryptlib.h"
-#include "asn1_locl.h"
#ifndef NO_SYS_TYPES_H
# include <sys/types.h>
#include <openssl/objects.h>
#include <openssl/buffer.h>
#include <openssl/evp.h>
+#include "asn1_locl.h"
#ifndef NO_ASN1_OLD
int mdnid, pknid;
+ if (!pkey)
+ {
+ ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
+ return -1;
+ }
+
EVP_MD_CTX_init(&ctx);
/* Convert signature OID into digest and public key OIDs */