Module Name: src
Committed By: jakllsch
Date: Thu Feb 8 20:18:03 UTC 2018
Modified Files:
src/crypto/external/bsd/openssl.old/dist/crypto/asn1: asn1.h
Log Message:
Add ASN1_STRING_get0_data() glue for OPENSSL_API_COMPAT >= 0x10100000L
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h
diff -u src/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h:1.1.1.1 src/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h:1.2
--- src/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h:1.1.1.1 Sat Feb 3 22:43:42 2018
+++ src/crypto/external/bsd/openssl.old/dist/crypto/asn1/asn1.h Thu Feb 8 20:18:03 2018
@@ -1413,6 +1413,14 @@ void ERR_load_ASN1_strings(void);
# 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