aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtls-standalone/openssl-1.1.0-asn1-string.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-10-24 18:43:38 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2018-10-24 18:44:53 -0500
commit6966c8e0302819c69535751bc8d52d7d7d4c9627 (patch)
tree5ad4f328cff40e756010197a0547beaa08d4576f /testing/libtls-standalone/openssl-1.1.0-asn1-string.patch
parent49f656ed06ba914f117dc609c955b946ea36a044 (diff)
downloadaports-6966c8e0302819c69535751bc8d52d7d7d4c9627.tar.gz
aports-6966c8e0302819c69535751bc8d52d7d7d4c9627.tar.bz2
aports-6966c8e0302819c69535751bc8d52d7d7d4c9627.tar.xz
testing/libtls-standalone: port to openssl 1.1.0 API
Diffstat (limited to 'testing/libtls-standalone/openssl-1.1.0-asn1-string.patch')
-rw-r--r--testing/libtls-standalone/openssl-1.1.0-asn1-string.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/libtls-standalone/openssl-1.1.0-asn1-string.patch b/testing/libtls-standalone/openssl-1.1.0-asn1-string.patch
new file mode 100644
index 0000000000..258ba60a5d
--- /dev/null
+++ b/testing/libtls-standalone/openssl-1.1.0-asn1-string.patch
@@ -0,0 +1,31 @@
+--- libressl-2.7.4.orig/tls/tls_verify.c
++++ libressl-2.7.4/tls/tls_verify.c
+@@ -126,12 +126,12 @@
+ continue;
+
+ if (type == GEN_DNS) {
+- unsigned char *data;
++ const unsigned char *data;
+ int format, len;
+
+ format = ASN1_STRING_type(altname->d.dNSName);
+ if (format == V_ASN1_IA5STRING) {
+- data = ASN1_STRING_data(altname->d.dNSName);
++ data = ASN1_STRING_get0_data(altname->d.dNSName);
+ len = ASN1_STRING_length(altname->d.dNSName);
+
+ if (len < 0 || (size_t)len != strlen(data)) {
+@@ -171,11 +171,11 @@
+ }
+
+ } else if (type == GEN_IPADD) {
+- unsigned char *data;
++ const unsigned char *data;
+ int datalen;
+
+ datalen = ASN1_STRING_length(altname->d.iPAddress);
+- data = ASN1_STRING_data(altname->d.iPAddress);
++ data = ASN1_STRING_get0_data(altname->d.iPAddress);
+
+ if (datalen < 0) {
+ tls_set_errorx(ctx,