summaryrefslogtreecommitdiffstats
path: root/crypto/asn1/asn1_lib.c
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2008-09-21 14:56:30 +0000
committersimon <simon@FreeBSD.org>2008-09-21 14:56:30 +0000
commit859b6dcfcc8295a0eac4afbc70e4d42aa512674a (patch)
treea136b5b2317abe8eb83b021afe5e088230fd67e2 /crypto/asn1/asn1_lib.c
parentfe745806aa8bec66ca79fe8f032ad472261ba789 (diff)
downloadFreeBSD-src-859b6dcfcc8295a0eac4afbc70e4d42aa512674a.zip
FreeBSD-src-859b6dcfcc8295a0eac4afbc70e4d42aa512674a.tar.gz
Vendor import of OpenSSL 0.9.8i.
Diffstat (limited to 'crypto/asn1/asn1_lib.c')
-rw-r--r--crypto/asn1/asn1_lib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/asn1/asn1_lib.c b/crypto/asn1/asn1_lib.c
index d5ae5b2..5af559e 100644
--- a/crypto/asn1/asn1_lib.c
+++ b/crypto/asn1/asn1_lib.c
@@ -393,6 +393,14 @@ int ASN1_STRING_set(ASN1_STRING *str, const void *_data, int len)
return(1);
}
+void ASN1_STRING_set0(ASN1_STRING *str, void *data, int len)
+ {
+ if (str->data)
+ OPENSSL_free(str->data);
+ str->data = data;
+ str->length = len;
+ }
+
ASN1_STRING *ASN1_STRING_new(void)
{
return(ASN1_STRING_type_new(V_ASN1_OCTET_STRING));
OpenPOWER on IntegriCloud