diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-12-11 14:02:31 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-12-11 14:02:31 -0500 |
commit | a03449287727239f58f1c319bff134ebc7f2013a (patch) | |
tree | 4d597b3663606b45f4b9ff6eaf7c5ddc6a67b6d4 | |
parent | 932f5cc1d7dc5ef2c85ff0f38b9cf8879c733521 (diff) | |
download | pyopenssl-a03449287727239f58f1c319bff134ebc7f2013a.tar.gz |
Add the necessary SSL_CTX_check_private_key call and error handling.
-rw-r--r-- | OpenSSL/SSL.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index 7b1cbc1..751cc2a 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -492,6 +492,9 @@ class Context(object): :return: None (raises an exception if something's wrong) """ + if not _lib.SSL_CTX_check_private_key(self._context): + _raise_current_error() + def load_client_ca(self, cafile): """ |