From c865544aa0c94bd5b8fa9f689148c1ee561270f0 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 14 Feb 2018 16:46:04 +0000 Subject: Provide ASN1_STRING_get0_data(). --- src/lib/libcrypto/asn1/asn1_lib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/asn1/asn1_lib.c') 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 @@ -/* $OpenBSD: asn1_lib.c,v 1.39 2017/05/02 03:59:44 deraadt Exp $ */ +/* $OpenBSD: asn1_lib.c,v 1.40 2018/02/14 16:46:04 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -484,3 +484,9 @@ ASN1_STRING_data(ASN1_STRING *x) { return (x->data); } + +const unsigned char * +ASN1_STRING_get0_data(const ASN1_STRING *x) +{ + return (x->data); +} -- cgit v1.2.3-55-g6feb