summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_digest.c')
-rw-r--r--src/lib/libcrypto/asn1/a_digest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_digest.c b/src/lib/libcrypto/asn1/a_digest.c
index 3370aae998..8257b8639e 100644
--- a/src/lib/libcrypto/asn1/a_digest.c
+++ b/src/lib/libcrypto/asn1/a_digest.c
@@ -77,14 +77,14 @@ int ASN1_digest(int (*i2d)(), const EVP_MD *type, char *data,
77 unsigned char *str,*p; 77 unsigned char *str,*p;
78 78
79 i=i2d(data,NULL); 79 i=i2d(data,NULL);
80 if ((str=(unsigned char *)Malloc(i)) == NULL) return(0); 80 if ((str=(unsigned char *)OPENSSL_malloc(i)) == NULL) return(0);
81 p=str; 81 p=str;
82 i2d(data,&p); 82 i2d(data,&p);
83 83
84 EVP_DigestInit(&ctx,type); 84 EVP_DigestInit(&ctx,type);
85 EVP_DigestUpdate(&ctx,str,i); 85 EVP_DigestUpdate(&ctx,str,i);
86 EVP_DigestFinal(&ctx,md,len); 86 EVP_DigestFinal(&ctx,md,len);
87 Free(str); 87 OPENSSL_free(str);
88 return(1); 88 return(1);
89 } 89 }
90 90