File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33### Unreleased
44
5+ ### v0.10.1 (2023-10-16)
6+
7+ #### Fixes
8+
9+ - Fixed regression that prevented TLS client certificates and other
10+ TLS environment variables from being initialized.
11+
512### v0.10.0 (2023-10-15)
613
714#### Features
Original file line number Diff line number Diff line change 1- __version__ = "0.10.0 "
1+ __version__ = "0.10.1 "
Original file line number Diff line number Diff line change @@ -215,7 +215,12 @@ def build_environ(self) -> EnvironDict:
215215 "SERVER_PROTOCOL" : "GEMINI" ,
216216 "SERVER_SOFTWARE" : f"jetforce/{ __version__ } " ,
217217 }
218- if not self .transport .TLS :
218+
219+ try :
220+ cert = self .transport .getPeerCertificate ()
221+ except AttributeError :
222+ # We're not using a TLS-enabled transport, we can skip
223+ # all of the TLS environment initialization below.
219224 return environ
220225
221226 conn = self .transport .getHandle ()
@@ -230,7 +235,6 @@ def build_environ(self) -> EnvironDict:
230235 }
231236 )
232237
233- cert = self .transport .getPeerCertificate ()
234238 if cert :
235239 x509_cert = cert .to_cryptography ()
236240 cert_data = inspect_certificate (x509_cert )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def long_description() -> str:
1010
1111setuptools .setup (
1212 name = "Jetforce" ,
13- version = "0.10.0 " ,
13+ version = "0.10.1 " ,
1414 url = "https://github.com/michael-lazar/jetforce" ,
1515 license = "Other/Proprietary License" ,
1616 author = "Michael Lazar" ,
You can’t perform that action at this time.
0 commit comments