diff options
author | Christian Heimes <christian@cheimes.de> | 2013-10-20 11:23:03 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-10-20 11:23:03 (GMT) |
commit | c6564b9474fb3250db80f44784b1e79f330953a9 (patch) | |
tree | 539e22424fd48a4f9258370e851d452c8a914b2a /Modules | |
parent | 36af10c1f7e50b257e97854aca594ec988d85c65 (diff) | |
download | cpython-c6564b9474fb3250db80f44784b1e79f330953a9.zip cpython-c6564b9474fb3250db80f44784b1e79f330953a9.tar.gz cpython-c6564b9474fb3250db80f44784b1e79f330953a9.tar.bz2 |
Make PKCS5_PBKDF2_HMAC_fast() a static function
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_hashopenssl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 3f796c3..d715500 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -513,10 +513,11 @@ EVP_new(PyObject *self, PyObject *args, PyObject *kwdict) * Also OpenSSL < 1.0 don't provide PKCS5_PBKDF2_HMAC(), only * PKCS5_PBKDF2_SHA1. */ -int PKCS5_PBKDF2_HMAC_fast(const char *pass, int passlen, - const unsigned char *salt, int saltlen, - int iter, const EVP_MD *digest, - int keylen, unsigned char *out) +static int +PKCS5_PBKDF2_HMAC_fast(const char *pass, int passlen, + const unsigned char *salt, int saltlen, + int iter, const EVP_MD *digest, + int keylen, unsigned char *out) { unsigned char digtmp[EVP_MAX_MD_SIZE], *p, itmp[4]; int cplen, j, k, tkeylen, mdlen; |