Initial support for Certificate Policies extension: print out works but setting
[oweals/openssl.git] / crypto / asn1 / a_verify.c
index 09e7fc05bb1f55a87f0f4ca8c111d961e3c64a61..dc5db9288b187689e8474a26f070f6022a85e2f1 100644 (file)
@@ -76,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;
 
@@ -89,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);