From owner-svn-ports-head@FreeBSD.ORG Sat Apr 25 07:45:18 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 550EFDCD; Sat, 25 Apr 2015 07:45:18 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 292321020; Sat, 25 Apr 2015 07:45:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3P7jIcG045053; Sat, 25 Apr 2015 07:45:18 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3P7jISx045052; Sat, 25 Apr 2015 07:45:18 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201504250745.t3P7jISx045052@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 25 Apr 2015 07:45:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r384716 - head/ftp/curl/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2015 07:45:18 -0000 Author: sunpoet Date: Sat Apr 25 07:45:17 2015 New Revision: 384716 URL: https://svnweb.freebsd.org/changeset/ports/384716 Log: - Fix build without NTLM Reference: https://github.com/bagder/curl/commit/fd9d3a1ef1f7b1cb5812d04bad07818efc6f3b3a Modified: head/ftp/curl/files/patch-lib-url.c Modified: head/ftp/curl/files/patch-lib-url.c ============================================================================== --- head/ftp/curl/files/patch-lib-url.c Sat Apr 25 07:42:36 2015 (r384715) +++ head/ftp/curl/files/patch-lib-url.c Sat Apr 25 07:45:17 2015 (r384716) @@ -1,11 +1,15 @@ +[1] Description: Different handling of signals and threads. Forwarded: not-needed Author: Peter Pentchev Last-Update: 2010-12-18 ---- lib/url.c.orig 2012-01-23 23:31:30.000000000 +0800 -+++ lib/url.c 2012-02-26 17:52:21.937920303 +0800 -@@ -797,6 +797,10 @@ +[2] +Reference: https://github.com/bagder/curl/commit/fd9d3a1ef1f7b1cb5812d04bad07818efc6f3b3a.patch + +--- lib/url.c.orig 2015-04-22 05:55:54 UTC ++++ lib/url.c +@@ -658,6 +658,10 @@ CURLcode Curl_open(struct SessionHandle data->progress.flags |= PGRS_HIDE; data->state.current_speed = -1; /* init to negative == impossible */ @@ -16,3 +20,35 @@ Last-Update: 2010-12-18 data->wildcard.state = CURLWC_INIT; data->wildcard.filelist = NULL; data->set.fnmatch = ZERO_NULL; +@@ -3069,9 +3073,11 @@ ConnectionExists(struct SessionHandle *d + struct connectdata *check; + struct connectdata *chosen = 0; + bool canPipeline = IsPipeliningPossible(data, needle); ++#ifdef USE_NTLM + bool wantNTLMhttp = ((data->state.authhost.want & CURLAUTH_NTLM) || + (data->state.authhost.want & CURLAUTH_NTLM_WB)) && + (needle->handler->protocol & PROTO_FAMILY_HTTP) ? TRUE : FALSE; ++#endif + struct connectbundle *bundle; + + *force_reuse = FALSE; +@@ -3208,6 +3214,7 @@ ConnectionExists(struct SessionHandle *d + continue; + } + ++#if defined(USE_NTLM) + if((!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) || + (wantNTLMhttp || check->ntlm.state != NTLMSTATE_NONE)) { + /* This protocol requires credentials per connection or is HTTP+NTLM, +@@ -3217,10 +3224,9 @@ ConnectionExists(struct SessionHandle *d + /* one of them was different */ + continue; + } +-#if defined(USE_NTLM) + credentialsMatch = TRUE; +-#endif + } ++#endif + + if(!needle->bits.httpproxy || needle->handler->flags&PROTOPT_SSL || + (needle->bits.httpproxy && check->bits.httpproxy &&