X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:from:to:references:message-id :date:mime-version:in-reply-to:content-type; q=dns; s=default; b= QuBVXBz9d/sCC1O+ddsoKgZQqH9DGByDg6CEWZEeoFgpeul6llWoPoF+jv1glO6m G54n98pp8EfFVaVDLcHO1Vjlz7/4yM0eZtYmnxsIW78fzmpdmKKMYRml1JwMvVVd 6YoNBw8WULuYuL7Sp114GCpqGlIVS/YVnL3vh/eZlFQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:from:to:references:message-id :date:mime-version:in-reply-to:content-type; s=default; bh=8OOSF RG0VHF0GfpCbbeJFjexhGk=; b=eRShca5pL0IPEGYF2iZpHm/3/mi/IqSHUQbtB 7+0NsY1AW5nmTv/106obwb7vv3tPePZY1A+k/3S3+bzA9Yh98T+fzBS9lPzSXCEp zneUGK0lndpjF3jRaL4zUitQxkF0R6572YhW30fezOguUbPA7w174Ol6/u5svZPe 3r2Cqg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:sk:cpe-74-, H*RU:sk:cpe-74-, HX-Gm-Message-State:APjAAAXl, password X-HELO: mail-qk1-f173.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:from:to:references:openpgp:autocrypt:message-id :date:user-agent:mime-version:in-reply-to; bh=eXeJT3KiRBbCJ03rJwENGrquGlWMZjNV5eUWVz1I5DY=; b=P9ikoxeinBmXUOrNVoQ+ZqK5urCjjqBmlQPhjm2hMJAFznbqS/ZvOwxIw0ZRXSv0Au +WEoV7ENLOH6phaYVt+omrIfIu8+XNvAriHH2sfDvmE9TjW19v+lRzHcyRemXZIPIJNj /RfuZP2HgQOR/O1IcNp2ntTeWS/RBWfzMT8c39QVzpeRElm07ypTEi6TpN2780NBphxH l/hXaczB0KbJjKNrnIXpDI0WgaKmfBImy9MveNBLofl60myLgbg46uTmmZVEFSNU3hIw Zg4kOYVoI0sEQVidkhetD63xki1StEORV0D8oNqN/ZsIGLdbbWWWJTH227gjcijJccFu Azog== Reply-To: davek AT 6thstreetradio DOT org Subject: Re: pinentry-tty, gpg-agent, and no way to enter password From: David Dombrowsky <6thstreetradio AT gmail DOT com> To: cygwin AT cygwin DOT com References: Openpgp: preference=signencrypt Message-ID: <9e985ef3-5c07-b7fe-e1c7-0ff4c07f71aa@gmail.com> Date: Wed, 17 Apr 2019 11:07:06 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz" X-IsSubscribed: yes --ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz Content-Type: multipart/mixed; boundary="qfek0BcjzMiNL4SgqaWeQxE56dfB5zSTZ"; protected-headers="v1" From: David Dombrowsky <6thstreetradio AT gmail DOT com> Reply-To: davek AT 6thstreetradio DOT org To: cygwin AT cygwin DOT com Message-ID: <9e985ef3-5c07-b7fe-e1c7-0ff4c07f71aa AT gmail DOT com> Subject: Re: pinentry-tty, gpg-agent, and no way to enter password References: In-Reply-To: --qfek0BcjzMiNL4SgqaWeQxE56dfB5zSTZ Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 4/16/19 12:29 PM, David Dombrowsky wrote: > From there I was able to cobble together a solution using a locally > patched version of pinentry-curses. Somewhere along the line, that > stopped working. I put debug prints in pinentry-tty, and it is opening the correct tty. However, running the command to set the terminal into the right mode will fail. If I comment that out, something interesting happens: tty/pinentry-tty.c 356 c =3D fgetc (ttyfi); 357 switch (c) This call to `fgetc`, while it points to a FILE handle opened to the correct tty, will read NOTHING. My session is on /dev/pty0, but a subprocess that opens that terminal for reading neither fail, nor read anything. Any ideas? --=20 David Dombrowsky, Software Engineer davek AT 6thstreetradio DOT org | 518-374-3204 https://www.linkedin.com/in/david-dombrowsky-94334415 --qfek0BcjzMiNL4SgqaWeQxE56dfB5zSTZ-- --ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJct0EbAAoJEAHVpiWjDA5qu+8IAKNOsPG7gXyOCKO69oUmKU4y y3BEXw2nuE/nFXEK3EQISdcXiaCvF72C8cVQIeDK1eIBzjN77DZXVYftjKsirXzG j5WgFJzOaJrjLkez07CDt/k0/6wFfZ2grdqcIeMMk8avN5ZmbeDJxg4+WMFj+DO1 Ji9y/JuSKg0yC7hKLY3itDR4V8oWIpnDXnLoNsTQqSlFsTNMOm/1MsBBF7pWy5bI X+hfeu5KA82py9otBuNl4EpXnaS6CS1+Z+4uZlJcfiQ7g9UkoZ3QgAvldGWhytFa 8dCkj2Q2nYz2vY4F6oqkUEq4JO1L0Wi7Pymv30frPMMt+42hqWe2+rpqNdyGNvA= =5GN9 -----END PGP SIGNATURE----- --ccktaL0cFWf8IaI4I6774HwDtzQa7YSBz--