aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/asn1/asn1_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/asn1/asn1_lib.c')
-rw-r--r--openssl/crypto/asn1/asn1_lib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openssl/crypto/asn1/asn1_lib.c b/openssl/crypto/asn1/asn1_lib.c
index 00733a6a8..0b61fc930 100644
--- a/openssl/crypto/asn1/asn1_lib.c
+++ b/openssl/crypto/asn1/asn1_lib.c
@@ -430,6 +430,13 @@ void ASN1_STRING_free(ASN1_STRING *a)
OPENSSL_free(a);
}
+void ASN1_STRING_clear_free(ASN1_STRING *a)
+{
+ if (a && a->data && !(a->flags & ASN1_STRING_FLAG_NDEF))
+ OPENSSL_cleanse(a->data, a->length);
+ ASN1_STRING_free(a);
+}
+
int ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b)
{
int i;