diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-06-02 09:12:10 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-06-02 09:12:10 -0700 |
| commit | 39ea5314e738ffb6455afe1df2e99f69a2aeb465 (patch) | |
| tree | a82dc2a734602bf3be6a6ec9182feeed5d9025eb /src/OpenSSL/crypto.py | |
| parent | 0f11ab36e36073e4cfeb23d476c4e6940671a263 (diff) | |
| download | pyopenssl-39ea5314e738ffb6455afe1df2e99f69a2aeb465.tar.gz | |
X509 sigalg is now opaque
Diffstat (limited to 'src/OpenSSL/crypto.py')
| -rw-r--r-- | src/OpenSSL/crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index 964420c..d6ebb22 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -1081,8 +1081,8 @@ class X509(object): .. versionadded:: 0.13 """ - alg = self._x509.cert_info.signature.algorithm - nid = _lib.OBJ_obj2nid(alg) + algor = _lib.X509_get0_tbs_sigalg(self._x509) + nid = _lib.OBJ_obj2nid(algor.algorithm) if nid == _lib.NID_undef: raise ValueError("Undefined signature algorithm") return _ffi.string(_lib.OBJ_nid2ln(nid)) |
