Skip to content

Commit

Permalink
new alpine new python (#7280)
Browse files Browse the repository at this point in the history
* new alpine new python

* Update ci.yml

* Fix for fedora
  • Loading branch information
alex committed Jun 21, 2022
1 parent d611f89 commit 7e462b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cryptography/hazmat/backends/openssl/backend.py
Expand Up @@ -713,7 +713,9 @@ def _evp_pkey_to_public_key(self, evp_pkey) -> PUBLIC_KEY_TYPES:
return _DSAPublicKey(self, dsa_cdata, evp_pkey)
elif key_type == self._lib.EVP_PKEY_EC:
ec_cdata = self._lib.EVP_PKEY_get1_EC_KEY(evp_pkey)
self.openssl_assert(ec_cdata != self._ffi.NULL)
if ec_cdata == self._ffi.NULL:
errors = self._consume_errors_with_text()
raise ValueError("Unable to load EC key", errors)
ec_cdata = self._ffi.gc(ec_cdata, self._lib.EC_KEY_free)
return _EllipticCurvePublicKey(self, ec_cdata, evp_pkey)
elif key_type in self._dh_types:
Expand Down

0 comments on commit 7e462b3

Please sign in to comment.