summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1_lib.c
diff options
context:
space:
mode:
authorjsing <>2018-02-14 16:46:04 +0000
committerjsing <>2018-02-14 16:46:04 +0000
commitc865544aa0c94bd5b8fa9f689148c1ee561270f0 (patch)
tree7b09db392dd2284fac090bffa0de2c6327097fa1 /src/lib/libcrypto/asn1/asn1_lib.c
parenta841f3159cebe1cb93dc24fb368b0b614c07563e (diff)
downloadopenbsd-c865544aa0c94bd5b8fa9f689148c1ee561270f0.tar.gz
openbsd-c865544aa0c94bd5b8fa9f689148c1ee561270f0.tar.bz2
openbsd-c865544aa0c94bd5b8fa9f689148c1ee561270f0.zip
Provide ASN1_STRING_get0_data().
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_lib.c')
-rw-r--r--src/lib/libcrypto/asn1/asn1_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_lib.c b/src/lib/libcrypto/asn1/asn1_lib.c
index 852644a781..970102c213 100644
--- a/src/lib/libcrypto/asn1/asn1_lib.c
+++ b/src/lib/libcrypto/asn1/asn1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_lib.c,v 1.39 2017/05/02 03:59:44 deraadt Exp $ */ 1/* $OpenBSD: asn1_lib.c,v 1.40 2018/02/14 16:46:04 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -484,3 +484,9 @@ ASN1_STRING_data(ASN1_STRING *x)
484{ 484{
485 return (x->data); 485 return (x->data);
486} 486}
487
488const unsigned char *
489ASN1_STRING_get0_data(const ASN1_STRING *x)
490{
491 return (x->data);
492}