Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 04E4E200BA7 for ; Fri, 21 Oct 2016 22:26:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 035EC160AE8; Fri, 21 Oct 2016 20:26:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47946160ADE for ; Fri, 21 Oct 2016 22:26:03 +0200 (CEST) Received: (qmail 69997 invoked by uid 500); 21 Oct 2016 20:26:02 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 69987 invoked by uid 99); 21 Oct 2016 20:26:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2016 20:26:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7E508C1339 for ; Fri, 21 Oct 2016 20:26:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=qqmail.nl Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ZEqMS7eJN2Ss for ; Fri, 21 Oct 2016 20:25:58 +0000 (UTC) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 540F35F1C2 for ; Fri, 21 Oct 2016 20:25:58 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id f193so1482283wmg.1 for ; Fri, 21 Oct 2016 13:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qqmail.nl; s=google; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=LjyskcVH0OGymW6ukM/zqSVOeIIA5SYT2MXhRGnGZiw=; b=RW86KfkBjvGn/YRCw4gq723UJjaYR1sz/TrK6XvJhjy7ZYr0gsxCQSQFbENhY7Fvy7 xREL+vnujpDFtN1b7bQdrpKc7Snwkt2c528EkBCVyuZlln7/MNIpK+/jcXbZFVYc59H3 lGhztgF6wCJXE3N2BLboo3nqXcWvuw3ebhRkg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=LjyskcVH0OGymW6ukM/zqSVOeIIA5SYT2MXhRGnGZiw=; b=V7J+yIgsHixfC1gKADU1xobT3MgK5AUhIM2ZsQBxXpZtOUaBlsZF7VXMeOHfcUOaKw P17u+jWDCTRtGOyDPjz0DysO89eSmDTN6L94LwKFHdXiI8QwuqMDDstSP+c12JoMUsIa sgzqIvhjudxLA9TTnp+3oF4ZoY6RHP70ZNcOcD2NSJlRx02nCAxupaxcMAFiPzZjCqkX nIyIM8uOn9cMAZunSoX26iuSWjshR298KYZS5PHiQyn/38EGgnjy+TmtwO/t3uj94fBQ ddazpDUn8TC/RvV77nX+ykR0ZLF/n4aC9qsBTRtMov8QqtsVN9vNqUpVDasJGjgpSavH lfPg== X-Gm-Message-State: ABUngveaMeF6zJsudWNZj7jQvK4AFGh0uzELDAvEDUelc+pTPO4qV3Ox2iVo+QZxcOdoZA== X-Received: by 10.194.200.162 with SMTP id jt2mr2080227wjc.172.1477081557843; Fri, 21 Oct 2016 13:25:57 -0700 (PDT) Received: from I72600 ([2001:610:66e:0:52e5:49ff:fee1:96b7]) by smtp.gmail.com with ESMTPSA id 18sm49414wmp.24.2016.10.21.13.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2016 13:25:57 -0700 (PDT) From: "Bert Huijben" To: "'Stefan Sperling'" , "'yuan lixin'" Cc: References: <2a1d970.9388.157e6b6da6b.Coremail.woodsp@126.com> <20161021105209.k6jxzx5vpbgkxbjw@jim.stsp.name> <1be81926.ab2e.157e70b937d.Coremail.woodsp@126.com> <20161021121340.fplt3r3skefaaium@jim.stsp.name> In-Reply-To: <20161021121340.fplt3r3skefaaium@jim.stsp.name> Subject: RE: Re: subversion issue: ignore server invaild certificate in linux Date: Fri, 21 Oct 2016 22:25:51 +0200 Message-ID: <043601d22bd9$524559e0$f6d00da0$@qqmail.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHzJYhYYVwrv4QQL0OVZp+T9HHmzgETb6L2AXsnNEIBG92+XqBUEv8w Content-Language: nl archived-at: Fri, 21 Oct 2016 20:26:04 -0000 > -----Original Message----- > From: Stefan Sperling [mailto:stsp@elego.de] > Sent: vrijdag 21 oktober 2016 14:14 > To: yuan lixin > Cc: users@subversion.apache.org > Subject: Re: Re: subversion issue: ignore server invaild certificate in linux > > On Fri, Oct 21, 2016 at 07:41:18PM +0800, yuan lixin wrote: > > but in the interface "svn_auth_ssl_server_trust_prompt_func_t", > > the actual parameter is "failures", not "*failures". so it can not change > > the svn's failures in linux, then can not ignore certificate. > > could you look at my code for a solution. > > > > Thank you > > --woodsp > > libsvn_subr gets 'failures' from the 'parameters' hash: Code shouldn't touch the failures value; they should change the accepted_failures in the credentials value. /** @c SVN_AUTH_CRED_SSL_SERVER_TRUST credentials. */ typedef struct svn_auth_cred_ssl_server_trust_t { /** Indicates if the credentials may be saved (to disk). For example, a * GUI prompt implementation with a checkbox to accept the certificate * permanently shall set @a may_save to TRUE if the checkbox is checked. */ svn_boolean_t may_save; /** Bit mask of the accepted failures */ apr_uint32_t accepted_failures; } svn_auth_cred_ssl_server_trust_t; If svn uses a different way to change a value in the caller that is a bug that should be fixed there. Bert