projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reinstate the check for invalid length BIT STRINGS,
[oweals/openssl.git]
/
crypto
/
asn1
/
p8_key.c
diff --git
a/crypto/asn1/p8_key.c
b/crypto/asn1/p8_key.c
index 0b243746279c19b59bb4bb973afe7b1e3d1f6f4c..3a31248e14bed185395f27646d5afd7209678ab8 100644
(file)
--- a/
crypto/asn1/p8_key.c
+++ b/
crypto/asn1/p8_key.c
@@
-94,7
+94,7
@@
X509 *X509_KEY_new(void)
{
X509_KEY *ret=NULL;
{
X509_KEY *ret=NULL;
- M_ASN1_New_
M
alloc(ret,X509_KEY);
+ M_ASN1_New_
OPENSSL_m
alloc(ret,X509_KEY);
ret->references=1;
ret->type=NID
M_ASN1_New(ret->cert_info,X509_CINF_new);
ret->references=1;
ret->type=NID
M_ASN1_New(ret->cert_info,X509_CINF_new);
@@
-126,6
+126,6
@@
void X509_KEY_free(X509 *a)
X509_CINF_free(a->cert_info);
X509_ALGOR_free(a->sig_alg);
ASN1_BIT_STRING_free(a->signature);
X509_CINF_free(a->cert_info);
X509_ALGOR_free(a->sig_alg);
ASN1_BIT_STRING_free(a->signature);
-
F
ree(a);
+
OPENSSL_f
ree(a);
}
}