Skip to content

Commit b71c392

Browse files
authored
Changelog and version bump for 37.0.3 (pyca#7362)
* Changelog and version bump for 37.0.3 * Fix Alpine python version in CI
1 parent 5954a52 commit b71c392

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ workflows:
7474
- linux-arm64:
7575
name: linux-arm64-alpine-ci
7676
image: ghcr.io/pyca/cryptography-runner-alpine:aarch64
77-
toxenv: py39
77+
toxenv: py310
7878
filters:
7979
tags:
8080
only: /.*/

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
- {IMAGE: "ubuntu-jammy", TOXENV: "py310"}
149149
- {IMAGE: "ubuntu-rolling", TOXENV: "py310"}
150150
- {IMAGE: "fedora", TOXENV: "py310"}
151-
- {IMAGE: "alpine", TOXENV: "py39"}
151+
- {IMAGE: "alpine", TOXENV: "py310"}
152152
name: "${{ matrix.IMAGE.TOXENV }} on ${{ matrix.IMAGE.IMAGE }}"
153153
timeout-minutes: 15
154154
steps:
@@ -412,7 +412,7 @@ jobs:
412412
run: |
413413
CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 \
414414
LDFLAGS="${HOME}/openssl-macos-x86-64/lib/libcrypto.a ${HOME}/openssl-macos-x86-64/lib/libssl.a" \
415-
CFLAGS="-I${HOME}/openssl-macos-x86-64/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.10 -march=core2 $EXTRA_CFLAGS" \
415+
CFLAGS="-I${HOME}/openssl-macos-x86-64/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.10 $EXTRA_CFLAGS" \
416416
tox -vvv -r -- --color=yes --wycheproof-root=wycheproof
417417
env:
418418
TOXENV: ${{ matrix.PYTHON.TOXENV }}

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
.. _v37-0-3:
5+
6+
37.0.3 - 2022-06-21
7+
~~~~~~~~~~~~~~~~~~~
8+
9+
* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.0.4.
10+
411
.. _v37-0-2:
512

613
37.0.2 - 2022-05-03

src/cryptography/__about__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"__copyright__",
1010
]
1111

12-
__version__ = "37.0.2"
12+
__version__ = "37.0.3"
1313

1414
__author__ = "The Python Cryptographic Authority and individual contributors"
15-
__copyright__ = "Copyright 2013-2021 {}".format(__author__)
15+
__copyright__ = "Copyright 2013-2022 {}".format(__author__)

src/cryptography/hazmat/backends/openssl/backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,9 @@ def _evp_pkey_to_public_key(self, evp_pkey) -> PUBLIC_KEY_TYPES:
713713
return _DSAPublicKey(self, dsa_cdata, evp_pkey)
714714
elif key_type == self._lib.EVP_PKEY_EC:
715715
ec_cdata = self._lib.EVP_PKEY_get1_EC_KEY(evp_pkey)
716-
self.openssl_assert(ec_cdata != self._ffi.NULL)
716+
if ec_cdata == self._ffi.NULL:
717+
errors = self._consume_errors_with_text()
718+
raise ValueError("Unable to load EC key", errors)
717719
ec_cdata = self._ffi.gc(ec_cdata, self._lib.EC_KEY_free)
718720
return _EllipticCurvePublicKey(self, ec_cdata, evp_pkey)
719721
elif key_type in self._dh_types:

vectors/cryptography_vectors/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"__version__",
77
]
88

9-
__version__ = "37.0.2"
9+
__version__ = "37.0.3"

0 commit comments

Comments
 (0)