www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/31/15:36:34

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:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=w8d2K5F6lltse6MG
44o2LZ2xPXsGm0EeYCgXnDhKMojaFj6iqArdP1nSfKVBVit2/c4KAyM2mXMEFfW0
XlOahBO59/CqNWjitxvBjEYAgl7ubRBSuWBvpstELahZ3jvrGrDL3Tt1zUwvAraV
xjBvKjC6X6rJbTK98yBy105fBvs=
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:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=kQ9qmuAigW/yJHPPL1ZRtu
tIwkc=; b=bStdzhvuB+o4kAigRIoxwjrmq1A1aGegWWOL2YBHkD1s47moIUAjAl
Y0+PcblT5GGRo3n2RrrEjx6u9TxHjBP3WHwt9fQcdyIstUir6TiEVlUyfcMUQOgc
dLlQSmiRxkbaoBV/vcK64ui1ERHc8LVRwmO6IoJLIsMEClcwvIpd8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=readers, discretion, certs, subsequently
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: Cygwin Dirmngr and TBB for windows
To: cygwin AT cygwin DOT com
References: <0d735703-6936-1b4a-74d0-f03692a8ddbd AT mail DOT com> <af86c6ad-0a31-d0b9-e8d9-e8f9371232a3 AT mail DOT com> <6064620b-7ea1-0c46-d8f8-5de024909c69 AT gmail DOT com> <20180830150725 DOT GC6350 AT calimero DOT vinschen DOT de> <5cb27938-3a8a-8f15-4a77-af7a754d8557 AT mail DOT com> <20180831083421 DOT GE6350 AT calimero DOT vinschen DOT de>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <32c4ad98-3669-cbc8-778b-49f897aa15fd@SystematicSw.ab.ca>
Date: Fri, 31 Aug 2018 13:36:18 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <20180831083421.GE6350@calimero.vinschen.de>
X-IsSubscribed: yes

On 2018-08-31 02:34, Corinna Vinschen wrote:
> On Aug 30 21:20, john doe wrote:
>> On 8/30/2018 5:07 PM, Corinna Vinschen wrote:
>>> On Aug 30 14:35, Marco Atzeri wrote:
>>>> Am 30.08.2018 um 11:30 schrieb john doe:
>>>>> On 7/11/2018 10:11 AM, john doe wrote:
>>>>>> I'm trying to get Cygwin dirmngr to work with  Tor Browser for Windows.
>>>>>> Following some discussion on the gnupg user list it looks like that
>>>>>> the connect(2) function in Cygwin does not return the proper error
>>>>>> code:
>>>>>> https://lists.gnupg.org/pipermail/gnupg-users/2018-July/060768.html
>>>>>> On the above link one of the dev suggest that connect(2) returns
>>>>>> EPERMS instead of ECONREFUSED.
>>>>>> If ECONREFUSED is not returned when port 9050 is queried the
>>>>>> fallback code in dirmngr will not be executed and port 9150 will
>>>>>> never be used.
>>>>>> Using dirmngr on Debian with TBB for linux works as expected.
>>>>>> Can anyone confirm that and subsequently make Cygwin return the
>>>>>> proper error code?
>>>>>> Any help is appriciated.
>>>>> Has any one has been able to confirm that the issue is present in Cygwin
>>>>> code?
>>>>> I didn't see anything regarding this issue in the beta version of Cygwin
>>>>> or did I miss it?
>>>> a Simple Test Case will help to verify the claim.
>>> Full ACK.
>>>> connect is not expected to return EPERM
>>>> http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html
>>> Cygwin does not explicitely generate EPERM anywhere near AF_INET/AF_INET6
>>> code. Nor does a Winsock error exist which gets gonverted to EPERM.
>>> The *only* way to generate EPERM is if an underlying Winsock function 
>>> returns an error code not handled by Cygwin. I never encountered that
>>> case, though. Thus, a STC is highly appreciated.
>> Thanks both for your answer and your willingness to look into this.
>> STC:
>> 1) Have Tor Browser for Windows up and running.
>> 2) Start dirmngr:
>> $ mkdir ${HOME}/try
>> $ dirmngr --homedir ${HOME}/try -vvv --debug-all --server --use-tor
>> -> KS_GET -- 0x6C6ACD6417B3ACB1
> That's not a STC. STC means a simple, self-contained piece of (ideally)
> C code to reproduce the issue. I simply don't have the time to hunt
> down something in lots of foreign code.

We may be able to run most Windows console apps interoperating with Cygwin
console apps, but with some Windows GUI apps about all we may be able to do is
launch them with cygstart: trying to integrate a security related app based on
an old release of an app designed for another platform offers too many
opportunities for mismatches.

As the OP has Debian TBB and dirmngr, why not use them, maybe from Cygwin/X?
Or the OP could install and run GNU PG/2 for Windows with TBB for Windows so the
apps would be working on the same basis and making the same assumptions about
paths, certs, IPC, perms, and errors.

Alternatively the OP could try building the Tor Browser from source to run under
Cygwin/X for use with Cygwin dirmngr, although as Tor is based on (old) Firefox,
and that is not available under Cygwin/X, and available browsers tend to be
lightweights, there may be too many porting issues from embedded Unix and
Windows assumptions to make that feasible, as I'm sure someone has (or maybe a
few have) tried that.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019