Initial support for Certificate Policies extension: print out works but setting
[oweals/openssl.git] / crypto / asn1 / a_verify.c
index 03fc63dbef3fde4ce96af867ea515f568b16c36c..dc5db9288b187689e8474a26f070f6022a85e2f1 100644 (file)
@@ -67,7 +67,6 @@
 #include "objects.h"
 #include "buffer.h"
 #include "evp.h"
-#include "pem.h"
 
 int ASN1_verify(i2d,a,signature,data,pkey)
 int (*i2d)();
@@ -77,7 +76,7 @@ char *data;
 EVP_PKEY *pkey;
        {
        EVP_MD_CTX ctx;
-       EVP_MD *type;
+       const EVP_MD *type;
        unsigned char *p,*buf_in=NULL;
        int ret= -1,i,inl;
 
@@ -90,7 +89,7 @@ EVP_PKEY *pkey;
                }
        
        inl=i2d(data,NULL);
-       buf_in=(unsigned char *)Malloc((unsigned int)inl);
+       buf_in=Malloc((unsigned int)inl);
        if (buf_in == NULL)
                {
                ASN1err(ASN1_F_ASN1_VERIFY,ERR_R_MALLOC_FAILURE);