public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Andrew Schulman <schulman.andrew@epa.gov>
To: cygwin-apps@cygwin.com
Subject: Re: cygport upload: patch for openssh 6.8p1
Date: Mon, 01 Jun 2015 08:04:00 -0000	[thread overview]
Message-ID: <fi3oma5icu555cpltoaoruha585jdhto3t@4ax.com> (raw)
In-Reply-To: <j5akmatr5evakc8raip10v3avvhsjvcedr@4ax.com>

> > Any thoughts on a better regex or on keeping compatibility with other
> > systems?
> 
> Right, OK.  See the attached revised patch, which uses
> 
>   [0-9a-f]{2}(:[0-9a-f]{2}){15}|SHA256:.{44}
> 
> to detect the key fingerprint.  The left side is the same as now, for pre-6.8
> systems, which use MD5 without a label.  The right side is for version 6.8 and
> later, where the default is SHA256 with the label 'SHA256:' prepended.  So this
> should cover all cases.

A more precise regex is

    [0-9a-f]{2}(:[0-9a-f]{2}){15}|SHA256:[A-Za-z0-9+/=]{43}

I've committed this change to my upload branch at
https://github.com/andrex-e-schulman/cygport.git.  

Also in that branch, I've added documentation of the fact that users will need
to connect to cygwin.com at least one time by sftp before they upload, in order
to store the host public key in their known_hosts file, as explained in
https://cygwin.com/ml/cygwin-apps/2015-03/msg00193.html .

Andrew

  reply	other threads:[~2015-06-01  8:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24 16:32 Andrew Schulman
2015-05-29 20:06 ` Yaakov Selkowitz
2015-05-30 21:22   ` Andrew Schulman
2015-06-01  8:04     ` Andrew Schulman [this message]
2015-06-03  4:23       ` Yaakov Selkowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fi3oma5icu555cpltoaoruha585jdhto3t@4ax.com \
    --to=schulman.andrew@epa.gov \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).