WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: "Mantas Mikulėnas" <grawity@gmail.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: [PATCH] Implement reading keys from stdin.
Date: Fri, 14 Feb 2020 13:12:35 +0200
Message-ID: <CAPWNY8UryuZY_RV7PKOUkgoe03ua-g=7Vq+YOoyqBzPRBwkwfw@mail.gmail.com> (raw)
In-Reply-To: <CAHmME9owUFjKsW=oGWeziQk8rjPm4cMrArJQ=nDP8+793w5PsA@mail.gmail.com>

[-- Attachment #1.1: Type: text/plain, Size: 573 bytes --]

On Sun, Feb 9, 2020 at 12:23 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Thank for the patch, and nice hanging with you at FOSDEM.
>
> Trying to get a handle on the use case for this. Is this so that you
> can put the private key and the preshared key in a single file
> together? Is there a situation where the shell redirection trick
> doesn't cut it? For example:
>
> wg set wg0 private-key <(head -n 1 bothkeys) preshared-key <(tail -n 1
> bothkeys)
>

I would guess there are shells which don't have the <(cmd) bashism...

-- 
Mantas Mikulėnas

[-- Attachment #1.2: Type: text/html, Size: 953 bytes --]

<div dir="ltr"><div dir="ltr">On Sun, Feb 9, 2020 at 12:23 AM Jason A. Donenfeld &lt;<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thank for the patch, and nice hanging with you at FOSDEM.<br>
<br>
Trying to get a handle on the use case for this. Is this so that you<br>
can put the private key and the preshared key in a single file<br>
together? Is there a situation where the shell redirection trick<br>
doesn&#39;t cut it? For example:<br>
<br>
wg set wg0 private-key &lt;(head -n 1 bothkeys) preshared-key &lt;(tail -n 1 bothkeys)<br></blockquote><div><br></div><div>I would guess there are shells which don&#39;t have the &lt;(cmd) bashism...</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

      parent reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-07 20:00 Hristo Venev
2020-02-08 22:20 ` Jason A. Donenfeld
2020-02-09  0:15   ` Hristo Venev
2020-02-14 11:17     ` Jason A. Donenfeld
2020-02-14 23:38       ` Hristo Venev
2020-02-14 11:12   ` Mantas Mikulėnas [this message]

Reply instructions:

You may reply publically 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='CAPWNY8UryuZY_RV7PKOUkgoe03ua-g=7Vq+YOoyqBzPRBwkwfw@mail.gmail.com' \
    --to=grawity@gmail.com \
    --cc=Jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git