summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/crypto/asn1/a_verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/crypto/asn1/a_verify.c')
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_verify.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/lib/libssl/src/crypto/asn1/a_verify.c b/src/lib/libssl/src/crypto/asn1/a_verify.c
index 03fc63dbef..6383d2c698 100644
--- a/src/lib/libssl/src/crypto/asn1/a_verify.c
+++ b/src/lib/libssl/src/crypto/asn1/a_verify.c
@@ -62,22 +62,17 @@
62#include <sys/stat.h> 62#include <sys/stat.h>
63 63
64#include "cryptlib.h" 64#include "cryptlib.h"
65#include "bn.h" 65#include <openssl/bn.h>
66#include "x509.h" 66#include <openssl/x509.h>
67#include "objects.h" 67#include <openssl/objects.h>
68#include "buffer.h" 68#include <openssl/buffer.h>
69#include "evp.h" 69#include <openssl/evp.h>
70#include "pem.h"
71 70
72int ASN1_verify(i2d,a,signature,data,pkey) 71int ASN1_verify(int (*i2d)(), X509_ALGOR *a, ASN1_BIT_STRING *signature,
73int (*i2d)(); 72 char *data, EVP_PKEY *pkey)
74X509_ALGOR *a;
75ASN1_BIT_STRING *signature;
76char *data;
77EVP_PKEY *pkey;
78 { 73 {
79 EVP_MD_CTX ctx; 74 EVP_MD_CTX ctx;
80 EVP_MD *type; 75 const EVP_MD *type;
81 unsigned char *p,*buf_in=NULL; 76 unsigned char *p,*buf_in=NULL;
82 int ret= -1,i,inl; 77 int ret= -1,i,inl;
83 78
@@ -90,7 +85,7 @@ EVP_PKEY *pkey;
90 } 85 }
91 86
92 inl=i2d(data,NULL); 87 inl=i2d(data,NULL);
93 buf_in=(unsigned char *)Malloc((unsigned int)inl); 88 buf_in=Malloc((unsigned int)inl);
94 if (buf_in == NULL) 89 if (buf_in == NULL)
95 { 90 {
96 ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE); 91 ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE);