Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2018 07:04:15 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r338779 - projects/openssl111/lib/libfetch
Message-ID:  <201809190704.w8J74FLx071735@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Sep 19 07:04:15 2018
New Revision: 338779
URL: https://svnweb.freebsd.org/changeset/base/338779

Log:
  Make libfetch buildable.

Modified:
  projects/openssl111/lib/libfetch/common.c

Modified: projects/openssl111/lib/libfetch/common.c
==============================================================================
--- projects/openssl111/lib/libfetch/common.c	Wed Sep 19 07:03:28 2018	(r338778)
+++ projects/openssl111/lib/libfetch/common.c	Wed Sep 19 07:04:15 2018	(r338779)
@@ -674,7 +674,11 @@ fetch_ssl_verify_altname(STACK_OF(GENERAL_NAME) *altna
 #else
 		name = sk_GENERAL_NAME_value(altnames, i);
 #endif
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
 		ns = (const char *)ASN1_STRING_data(name->d.ia5);
+#else
+		ns = (const char *)ASN1_STRING_get0_data(name->d.ia5);
+#endif
 		nslen = (size_t)ASN1_STRING_length(name->d.ia5);
 
 		if (name->type == GEN_DNS && ip == NULL &&



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809190704.w8J74FLx071735>