Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Would you people stop playing these stupid games?!?!?!!!!


devel / comp.lang.python / Re: ssl: why wrap newly accept()ed connections?

SubjectAuthor
o Re: ssl: why wrap newly accept()ed connections?Grant Edwards

1
Re: ssl: why wrap newly accept()ed connections?

<mailman.10.1643923454.27178.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=21297&group=comp.lang.python#21297

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b.edwards@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: ssl: why wrap newly accept()ed connections?
Date: Thu, 03 Feb 2022 13:24:11 -0800 (PST)
Lines: 21
Message-ID: <mailman.10.1643923454.27178.python-list@python.org>
References: <61fc2a3d.1c69fb81.c508c.1f92@mx.google.com>
<87k0ebkagw.fsf@locationd.net>
<61fc47fb.1c69fb81.f7ff7.0203@mx.google.com>
X-Trace: news.uni-berlin.de LOvc4SImbOLAf8R4dtsceQjO3auCGREpHZ4cD5yzxOdA==
Return-Path: <grant.b.edwards@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=QTbqRQNE;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'that.': 0.15;
'connection.': 0.16; 'from:addr:grant.b.edwards': 0.16;
'from:name:grant edwards': 0.16; 'kumaran': 0.16; 'kushal': 0.16;
'missed': 0.16; 'wrote:': 0.16; 'grant': 0.17; 'server.': 0.19;
'to:addr:python-list': 0.20; "i've": 0.22; 'code': 0.23;
'thanks!': 0.24; 'section': 0.25; 'done': 0.28; 'purpose': 0.28;
'header:User-Agent:1': 0.30; 'server': 0.33;
'received:google.com': 0.34; 'received:209.85.166': 0.35;
'from:addr:gmail.com': 0.35; 'using': 0.37; 'received:209.85':
0.37; 'received:209': 0.39; 'newly': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=message-id:date:from:subject:references:user-agent:to;
bh=RprNhJdM5YYlqYABHQUP5IuqSjNORsc7edSwn6ydsC4=;
b=QTbqRQNEIffvEFEVwHA6Q93XsFtALkOD2D+fJhDZJWrnv5ReO+lpWUgxoEwTGE7llD
KQenUKxRVgsJhbLAu0skL9tvxcFLUIxaagfIAapF6cPsAXUdof2toBE5+xi3jJykqYIK
fVeKWqt7+xsCGejAlJk0iSH5+l2G8eonDnuv5qhIhp6mj0xWY7C40iawiaHN3h8e19eS
okqwJLBVsEOF1Se1Ol7QqBnqPB3oWqHyIOwrAacTJBcqTAAnrnGlg6Zt522G7748FCNs
G8YbtGTmNT8rzF0mE+KpB0ePJJupRwDj2ym0/av+tjxZjU26vMAZbysLCBgF3jLH1n3o
c+Ww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:from:subject:references
:user-agent:to;
bh=RprNhJdM5YYlqYABHQUP5IuqSjNORsc7edSwn6ydsC4=;
b=F3cM43dzuHT9uTRzLhpkuWRpaI1d1Hajxn4A5pVqmy1/PtzTQX5yW0XE+4N9bWrClq
5w0JnsbzG2lh0GjLq/mjvpLjEnktNjKd5XFRjgBPK2MHhyvp9NM/4Qei/au1nQ10gNAC
+glgvGPgW1OBRFJ8nKzHY/uG5I8BHrNmfxjM9+jpzQUPHP8VxjGAu4YaytsPssIh7GLn
zqNSEzXGrOdLhyeMqq9fXMZPE30oD5ykJALJLQBVUlJ5QUsFzgLXMhMPfKs/ici/SzXA
fAYek6x9qttMNe+Bk24DQVedikf9mO1S+8x/monNjzT7wkm7nOGrm7rYvU0BNx+xEane
99Lg==
X-Gm-Message-State: AOAM533COP7KBxkuZSI6DyMPlDmM90zho668dn6O4tKJ4yY8WKQL+vP1
3rvfThYm+1wdmHi2Q+B+ZHa2hVcym7Q=
X-Google-Smtp-Source: ABdhPJwdtA2Kjxe/prUjgOLH2YgS/0FM4WEHDgdBnwf1Rr15J0iPOIocPHT3Jn7sgkA6qMFOu7Bwew==
X-Received: by 2002:a05:6638:2642:: with SMTP id
n2mr15751870jat.47.1643923452013;
Thu, 03 Feb 2022 13:24:12 -0800 (PST)
User-Agent: slrn/1.0.3 (Linux)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <61fc47fb.1c69fb81.f7ff7.0203@mx.google.com>
X-Mailman-Original-References: <61fc2a3d.1c69fb81.c508c.1f92@mx.google.com>
<87k0ebkagw.fsf@locationd.net>
 by: Grant Edwards - Thu, 3 Feb 2022 21:24 UTC

On 2022-02-03, Kushal Kumaran <kushal@locationd.net> wrote:
>
>> [...]
>> However, example server code I've found does not wrap the newly
>> accepted connection. I've checked, and newsocket is already an
>> <ssl:SSLSocket> object. [...]
>>
>> What is the purpose of wrapping newsocket?
>
> That section is talking about using an "ordinary" socket for the server.

Yep, I missed that.

> bindsocket is a socket.socket. If bindsocket was already a
> ssl.SSLSocket, the wrapping would be already done by accept.

Thanks!

--
Grant


devel / comp.lang.python / Re: ssl: why wrap newly accept()ed connections?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor