mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
...
This commit is contained in:
parent
2a5922ce92
commit
b1e0adcfdc
1 changed files with 0 additions and 2 deletions
|
|
@ -170,7 +170,6 @@ elliptic_curve_key_get_public(EllipticCurveKey *self, void UNUSED *closure) {
|
|||
if (!ans) return NULL;
|
||||
if (1 != EVP_PKEY_get_raw_public_key(self->key, (unsigned char*)PyBytes_AS_STRING(ans), &len)) { Py_CLEAR(ans); return set_error_from_openssl("Could not get public key from EVP_PKEY"); }
|
||||
return ans;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -183,7 +182,6 @@ elliptic_curve_key_get_private(EllipticCurveKey *self, void UNUSED *closure) {
|
|||
if (mlock(PyBytes_AS_STRING(ans), len) != 0) { Py_CLEAR(ans); return PyErr_SetFromErrno(PyExc_OSError); }
|
||||
if (1 != EVP_PKEY_get_raw_private_key(self->key, (unsigned char*)ans->secret, &len)) { Py_CLEAR(ans); return set_error_from_openssl("Could not get public key from EVP_PKEY"); }
|
||||
return (PyObject*)ans;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue