diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-12-09 18:03:11 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-12-09 18:08:52 -0600 |
commit | 65c9171cc1b7ab617dbb95524b0f3b019f8d65fb (patch) | |
tree | de26b353f079670666f9538db5bf2118be1db5e6 | |
parent | 29d6de51c83d066cfd177296c019727887e2caac (diff) | |
download | cryptography-65c9171cc1b7ab617dbb95524b0f3b019f8d65fb.tar.gz cryptography-65c9171cc1b7ab617dbb95524b0f3b019f8d65fb.tar.bz2 cryptography-65c9171cc1b7ab617dbb95524b0f3b019f8d65fb.zip |
add additional bindings to load private keys
-rw-r--r-- | cryptography/hazmat/bindings/openssl/pem.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/openssl/pem.py b/cryptography/hazmat/bindings/openssl/pem.py index 00f0dc36..cef7839f 100644 --- a/cryptography/hazmat/bindings/openssl/pem.py +++ b/cryptography/hazmat/bindings/openssl/pem.py @@ -29,6 +29,15 @@ int PEM_write_bio_PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *, EVP_PKEY *PEM_read_bio_PrivateKey(BIO *, EVP_PKEY **, pem_password_cb *, void *); +int PEM_write_bio_PKCS8PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *, + char *, int, pem_password_cb *, void *); + +int i2d_PKCS8PrivateKey_bio(BIO *, EVP_PKEY *, const EVP_CIPHER *, + char *, int, pem_password_cb *, void *); + +EVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *, EVP_PKEY **, pem_password_cb *, + void *); + int PEM_write_bio_X509_REQ(BIO *, X509_REQ *); X509_REQ *PEM_read_bio_X509_REQ(BIO *, X509_REQ **, pem_password_cb *, void *); |