Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl.old/dist/crypto/asn1 Add ASN1_ST...



details:   https://anonhg.NetBSD.org/src/rev/238370f9ebc1
branches:  trunk
changeset: 829693:238370f9ebc1
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Feb 08 20:18:03 2018 +0000

description:
Add ASN1_STRING_get0_data() glue for OPENSSL_API_COMPAT >= 0x10100000L

diffstat:

 crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 66147cd66f55 -r 238370f9ebc1 crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h
--- a/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h   Thu Feb 08 20:10:55 2018 +0000
+++ b/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h   Thu Feb 08 20:18:03 2018 +0000
@@ -1413,6 +1413,14 @@
 # define ASN1_R_WRONG_TAG                                 168
 # define ASN1_R_WRONG_TYPE                                169
 
+#if OPENSSL_API_COMPAT >= 0x10100000L
+static inline const unsigned char *
+ASN1_STRING_get0_data(const ASN1_STRING *x)
+{
+       return ASN1_STRING_data(__UNCONST(x));
+}
+#endif
+
 #ifdef  __cplusplus
 }
 #endif



Home | Main Index | Thread Index | Old Index