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 6BEE6200B4D for ; Sat, 23 Jul 2016 20:03:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6A7EA160A77; Sat, 23 Jul 2016 18:03:19 +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 DAA4E160A68 for ; Sat, 23 Jul 2016 20:03:18 +0200 (CEST) Received: (qmail 22960 invoked by uid 500); 23 Jul 2016 18:03:18 -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 22948 invoked by uid 99); 23 Jul 2016 18:03:18 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2016 18:03:18 +0000 Received: by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org, from userid 3316) id DA8161A01D7; Sat, 23 Jul 2016 18:03:17 +0000 (UTC) Date: Sat, 23 Jul 2016 18:03:17 +0000 From: Daniel Shahaf To: Eric Johnson Cc: "Krueger, Lars (CQSE)" , users@subversion.apache.org Subject: Re: securing of correct transmit Message-ID: <20160723180317.GA6269@tarsus.local2> References: <0416B3351D30624C8075E47BE703DE5B132930B2@VWAGWOXE0401.vw.vwg> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) archived-at: Sat, 23 Jul 2016 18:03:19 -0000 Eric Johnson wrote on Fri, Jul 22, 2016 at 09:27:50 -0700: > Hi Lars, > > On 7/22/16 1:56 AM, Krueger, Lars (CQSE) wrote: > >Hello together, > >I need to know how SVN ensures that each item (comminting or updateing) is > >correctly transmitted from/ to a repository. If I use ‘svn info’ command I > >can see a ‘Checksum’ for a file. Do you use this Checksum? > > I have not examined the code. I can say, however, in the years that I've > been lurking on this list, I've *never* seen anyone report an issue with a > file being corrupted in transit to the server. I assume that is because the > answer to your question is emphatically, "yes". > Yes, we use checksums in both directions. The checksum is usually sha1 although it may be md5 for old data [written by 1.5(?) and older]. > Of course, it is open source, so you can go look at the code. I was curious > whether I could find it. This seems like the right file. I see references to > "checksum" in their, so that's promising. > https://svn.apache.org/repos/asf/subversion/trunk/subversion/libsvn_client/commit.c > My answer would be the open_file/apply_textdelta/close_file sequence from the svn_delta_editor_t type. These three are the interface that transmits a versioned file across the wire. Cheers, Daniel