aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-06-30 08:01:12 -0700
committerCory Benfield <lukasaoz@gmail.com>2017-06-30 16:01:12 +0100
commit173e4bae31aac1fb66dd83ad4f78fa2fda0f3141 (patch)
tree3a378eafa4e022f93474d5241599e0bffd68729b /src
parent941f903ff6929a4ae99abfe6d7109398186dfe9d (diff)
downloadpyopenssl-173e4bae31aac1fb66dd83ad4f78fa2fda0f3141.tar.gz
Removed the deprecated md5 default on CRL.export() (#652)
* Removed the deprecated md5 default on CRL.export() * Doh * unused import * fixed tests * last one * py3k!!!!!
Diffstat (limited to 'src')
-rw-r--r--src/OpenSSL/crypto.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index e58a455..20cf183 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -3,7 +3,6 @@ import datetime
from base64 import b16encode
from functools import partial
from operator import __eq__, __ne__, __lt__, __le__, __gt__, __ge__
-from warnings import warn as _warn
from six import (
integer_types as _integer_types,
@@ -2221,13 +2220,7 @@ class CRL(object):
raise TypeError("type must be an integer")
if digest is _UNSPECIFIED:
- _warn(
- "The default message digest (md5) is deprecated. "
- "Pass the name of a message digest explicitly.",
- category=DeprecationWarning,
- stacklevel=2,
- )
- digest = b"md5"
+ raise TypeError("digest must be provided")
digest_obj = _lib.EVP_get_digestbyname(digest)
if digest_obj == _ffi.NULL: