From owner-svn-src-projects@freebsd.org Wed Sep 19 07:04:16 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB2AE1091AEB for ; Wed, 19 Sep 2018 07:04:15 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 901347443E; Wed, 19 Sep 2018 07:04:15 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 855183AF6; Wed, 19 Sep 2018 07:04:15 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8J74Ffu071736; Wed, 19 Sep 2018 07:04:15 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8J74FLx071735; Wed, 19 Sep 2018 07:04:15 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201809190704.w8J74FLx071735@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 19 Sep 2018 07:04:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r338779 - projects/openssl111/lib/libfetch X-SVN-Group: projects X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: projects/openssl111/lib/libfetch X-SVN-Commit-Revision: 338779 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2018 07:04:16 -0000 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 &&