diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-06-03 15:21:44 -0700 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2016-06-03 15:21:44 -0700 |
commit | 32fc4e6460842c9b0983008f105b04f77e4b5633 (patch) | |
tree | 9ba02c52ca774ab78508d770637cc420b48ade56 /src/OpenSSL/crypto.py | |
parent | 8edeb3a214c61b2f5c2abbd8bbb0a51709a1126b (diff) | |
download | pyopenssl-32fc4e6460842c9b0983008f105b04f77e4b5633.tar.gz |
fix a small bug with load_publickey (#481)
* fix a small bug with load_publickey
* update docstring, rename test method
* make hynek happy
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r-- | src/OpenSSL/crypto.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 21bdadd..4c1ce87 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -2450,6 +2450,7 @@ def load_publickey(type, buffer): pkey = PKey.__new__(PKey) pkey._pkey = _ffi.gc(evp_pkey, _lib.EVP_PKEY_free) + pkey._only_public = True return pkey |