diff options
author | Fedora Python maintainers <python-devel@lists.fedoraproject.org> | 2020-07-15 13:40:21 (GMT) |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2020-09-29 13:59:05 (GMT) |
commit | 59fcc40a1023230fe9e5bf4189a68c30953e6b72 (patch) | |
tree | b63f251607a033990f1c3277dd7596ced736240b /Modules | |
parent | e20a3150622d5b2b632b45c8704f43dda25e9810 (diff) | |
download | cpython-59fcc40a1023230fe9e5bf4189a68c30953e6b72.zip cpython-59fcc40a1023230fe9e5bf4189a68c30953e6b72.tar.gz cpython-59fcc40a1023230fe9e5bf4189a68c30953e6b72.tar.bz2 |
00165-crypt-module-salt-backport.patch
00165 #
Backport to Python 2 from Python 3.3 of improvements to the "crypt" module
adding precanned ways of salting a password (rhbz#835021)
Based on r88500 patch to py3k from Python 3.3
plus 6482dd1c11ed, 0586c699d467, 62994662676a, 74a1110a3b50, plus edits
to docstrings to note that this additional functionality is not standard
within 2.7
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Setup.dist | 2 | ||||
-rw-r--r-- | Modules/cryptmodule.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/Setup.dist b/Modules/Setup.dist index 9a8d630..a867d6e 100644 --- a/Modules/Setup.dist +++ b/Modules/Setup.dist @@ -225,7 +225,7 @@ _ssl _ssl.c \ # # First, look at Setup.config; configure may have set this for you. -crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems +_crypt _cryptmodule.c -lcrypt # crypt(3); needs -lcrypt on some systems # Some more UNIX dependent modules -- off by default, since these diff --git a/Modules/cryptmodule.c b/Modules/cryptmodule.c index 76de54f..7c69ca6 100644 --- a/Modules/cryptmodule.c +++ b/Modules/cryptmodule.c @@ -43,7 +43,7 @@ static PyMethodDef crypt_methods[] = { }; PyMODINIT_FUNC -initcrypt(void) +init_crypt(void) { - Py_InitModule("crypt", crypt_methods); + Py_InitModule("_crypt", crypt_methods); } |