gusmobile

python gemini client library
git clone https://git.clttr.info/gusmobile.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 91ebfa40a1030ef089c85910d9abd0bfca3798e2
parent 39cabc406fa097b3282b2e9dc71a7e0b891e23bf
Author: René Wagner <rwa@clttr.info>
Date:   Thu, 17 Mar 2022 19:24:11 +0100

allow more ciphers

related to #1

Diffstat:
Mgusmobile/client.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gusmobile/client.py b/gusmobile/client.py @@ -225,7 +225,8 @@ def _send_request(url): context.options | ssl.OP_NO_SSLv3 context.options | ssl.OP_NO_SSLv2 context.set_ciphers( - "AESGCM+ECDHE:AESGCM+DHE:CHACHA20+ECDHE:CHACHA20+DHE:!DSS:!SHA1:!MD5:@STRENGTH" + "AES256-GCM-SHA384:AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES: +!MD5:!PSK" ) # print(context.get_ciphers()) s = context.wrap_socket(s, server_hostname=url.hostname)