Skip to content

Commit 6d7c5b6

Browse files
committed
revert some renaming
1 parent e207509 commit 6d7c5b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/_hashopenssl.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ get_openssl_evp_md_name(const EVP_MD *md)
406406
/* Get EVP_MD by HID and purpose */
407407
static PY_EVP_MD *
408408
get_openssl_evp_md_by_utf8name(PyObject *module, const char *name,
409-
Py_hash_type hash_type)
409+
Py_hash_type py_ht)
410410
{
411411
PY_EVP_MD *digest = NULL;
412412
PY_EVP_MD *other_digest = NULL;
@@ -416,7 +416,7 @@ get_openssl_evp_md_by_utf8name(PyObject *module, const char *name,
416416
);
417417

418418
if (entry != NULL) {
419-
switch (hash_type) {
419+
switch (py_ht) {
420420
case Py_ht_evp_md:
421421
case Py_ht_mac:
422422
case Py_ht_pbkdf2:
@@ -453,7 +453,7 @@ get_openssl_evp_md_by_utf8name(PyObject *module, const char *name,
453453
}
454454
} else {
455455
// Fall back for looking up an unindexed OpenSSL specific name.
456-
switch (hash_type) {
456+
switch (py_ht) {
457457
case Py_ht_evp_md:
458458
case Py_ht_mac:
459459
case Py_ht_pbkdf2:
@@ -481,7 +481,7 @@ get_openssl_evp_md_by_utf8name(PyObject *module, const char *name,
481481
*/
482482
static PY_EVP_MD *
483483
get_openssl_evp_md(PyObject *module, PyObject *digestmod,
484-
Py_hash_type hash_type)
484+
Py_hash_type py_ht)
485485
{
486486
PyObject *name_obj = NULL;
487487
const char *name;
@@ -508,7 +508,7 @@ get_openssl_evp_md(PyObject *module, PyObject *digestmod,
508508
return NULL;
509509
}
510510

511-
return get_openssl_evp_md_by_utf8name(module, name, hash_type);
511+
return get_openssl_evp_md_by_utf8name(module, name, py_ht);
512512
}
513513

514514
static HASHobject *

0 commit comments

Comments
 (0)