Skip to content

Commit f1edffe

Browse files
committed
use the same signature for the macro
1 parent aa41a74 commit f1edffe

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Modules/_hashopenssl.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ _hashlib_HASH(_hashlibstate *state, const char *digestname, PyObject *data_obj,
12521252
}
12531253

12541254
#define CALL_HASHLIB_NEW(MODULE, NAME, DATA, STRING, USEDFORSECURITY) \
1255-
return _hashlib_HASH_new_impl(MODULE, NAME, DATA, USEDFORSECURITY, STRING)
1255+
return _hashlib_HASH_new_impl(MODULE, NAME, DATA, STRING, USEDFORSECURITY)
12561256

12571257
/* The module-level function: new() */
12581258

@@ -1304,7 +1304,7 @@ _hashlib_openssl_md5_impl(PyObject *module, PyObject *data,
13041304
int usedforsecurity, PyObject *string)
13051305
/*[clinic end generated code: output=ca8cf184d90f7432 input=e7c0adbd6a867db1]*/
13061306
{
1307-
CALL_HASHLIB_NEW(module, Py_hash_md5, data, string, usedforsecurity);
1307+
CALL_HASHLIB_NEW(module, Py_hash_md5, data, usedforsecurity, string);
13081308
}
13091309

13101310

@@ -1325,7 +1325,7 @@ _hashlib_openssl_sha1_impl(PyObject *module, PyObject *data,
13251325
int usedforsecurity, PyObject *string)
13261326
/*[clinic end generated code: output=1736fb7b310d64be input=f7e5bb1711e952d8]*/
13271327
{
1328-
CALL_HASHLIB_NEW(module, Py_hash_sha1, data, string, usedforsecurity);
1328+
CALL_HASHLIB_NEW(module, Py_hash_sha1, data, usedforsecurity, string);
13291329
}
13301330

13311331

@@ -1346,7 +1346,7 @@ _hashlib_openssl_sha224_impl(PyObject *module, PyObject *data,
13461346
int usedforsecurity, PyObject *string)
13471347
/*[clinic end generated code: output=0d6ff57be5e5c140 input=3820fff7ed3a53b8]*/
13481348
{
1349-
CALL_HASHLIB_NEW(module, Py_hash_sha224, data, string, usedforsecurity);
1349+
CALL_HASHLIB_NEW(module, Py_hash_sha224, data, usedforsecurity, string);
13501350
}
13511351

13521352

@@ -1367,7 +1367,7 @@ _hashlib_openssl_sha256_impl(PyObject *module, PyObject *data,
13671367
int usedforsecurity, PyObject *string)
13681368
/*[clinic end generated code: output=412ea7111555b6e7 input=9a2f115cf1f7e0eb]*/
13691369
{
1370-
CALL_HASHLIB_NEW(module, Py_hash_sha256, data, string, usedforsecurity);
1370+
CALL_HASHLIB_NEW(module, Py_hash_sha256, data, usedforsecurity, string);
13711371
}
13721372

13731373

@@ -1388,7 +1388,7 @@ _hashlib_openssl_sha384_impl(PyObject *module, PyObject *data,
13881388
int usedforsecurity, PyObject *string)
13891389
/*[clinic end generated code: output=2e0dc395b59ed726 input=1ea48f6f01e77cfb]*/
13901390
{
1391-
CALL_HASHLIB_NEW(module, Py_hash_sha384, data, string, usedforsecurity);
1391+
CALL_HASHLIB_NEW(module, Py_hash_sha384, data, usedforsecurity, string);
13921392
}
13931393

13941394

@@ -1409,7 +1409,7 @@ _hashlib_openssl_sha512_impl(PyObject *module, PyObject *data,
14091409
int usedforsecurity, PyObject *string)
14101410
/*[clinic end generated code: output=4bdd760388dbfc0f input=3cf56903e07d1f5c]*/
14111411
{
1412-
CALL_HASHLIB_NEW(module, Py_hash_sha512, data, string, usedforsecurity);
1412+
CALL_HASHLIB_NEW(module, Py_hash_sha512, data, usedforsecurity, string);
14131413
}
14141414

14151415

@@ -1432,7 +1432,7 @@ _hashlib_openssl_sha3_224_impl(PyObject *module, PyObject *data,
14321432
int usedforsecurity, PyObject *string)
14331433
/*[clinic end generated code: output=6d8dc2a924f3ba35 input=7f14f16a9f6a3158]*/
14341434
{
1435-
CALL_HASHLIB_NEW(module, Py_hash_sha3_224, data, string, usedforsecurity);
1435+
CALL_HASHLIB_NEW(module, Py_hash_sha3_224, data, usedforsecurity, string);
14361436
}
14371437

14381438
/*[clinic input]
@@ -1452,7 +1452,7 @@ _hashlib_openssl_sha3_256_impl(PyObject *module, PyObject *data,
14521452
int usedforsecurity, PyObject *string)
14531453
/*[clinic end generated code: output=9e520f537b3a4622 input=7987150939d5e352]*/
14541454
{
1455-
CALL_HASHLIB_NEW(module, Py_hash_sha3_256, data, string, usedforsecurity);
1455+
CALL_HASHLIB_NEW(module, Py_hash_sha3_256, data, usedforsecurity, string);
14561456
}
14571457

14581458
/*[clinic input]
@@ -1472,7 +1472,7 @@ _hashlib_openssl_sha3_384_impl(PyObject *module, PyObject *data,
14721472
int usedforsecurity, PyObject *string)
14731473
/*[clinic end generated code: output=d239ba0463fd6138 input=fc943401f67e3b81]*/
14741474
{
1475-
CALL_HASHLIB_NEW(module, Py_hash_sha3_384, data, string, usedforsecurity);
1475+
CALL_HASHLIB_NEW(module, Py_hash_sha3_384, data, usedforsecurity, string);
14761476
}
14771477

14781478
/*[clinic input]
@@ -1492,7 +1492,7 @@ _hashlib_openssl_sha3_512_impl(PyObject *module, PyObject *data,
14921492
int usedforsecurity, PyObject *string)
14931493
/*[clinic end generated code: output=17662f21038c2278 input=6601ddd2c6c1516d]*/
14941494
{
1495-
CALL_HASHLIB_NEW(module, Py_hash_sha3_512, data, string, usedforsecurity);
1495+
CALL_HASHLIB_NEW(module, Py_hash_sha3_512, data, usedforsecurity, string);
14961496
}
14971497
#endif /* PY_OPENSSL_HAS_SHA3 */
14981498

@@ -1514,7 +1514,7 @@ _hashlib_openssl_shake_128_impl(PyObject *module, PyObject *data,
15141514
int usedforsecurity, PyObject *string)
15151515
/*[clinic end generated code: output=4e6afed8d18980ad input=373c3f1c93d87b37]*/
15161516
{
1517-
CALL_HASHLIB_NEW(module, Py_hash_shake_128, data, string, usedforsecurity);
1517+
CALL_HASHLIB_NEW(module, Py_hash_shake_128, data, usedforsecurity, string);
15181518
}
15191519

15201520
/*[clinic input]
@@ -1534,7 +1534,7 @@ _hashlib_openssl_shake_256_impl(PyObject *module, PyObject *data,
15341534
int usedforsecurity, PyObject *string)
15351535
/*[clinic end generated code: output=62481bce4a77d16c input=101c139ea2ddfcbf]*/
15361536
{
1537-
CALL_HASHLIB_NEW(module, Py_hash_shake_256, data, string, usedforsecurity);
1537+
CALL_HASHLIB_NEW(module, Py_hash_shake_256, data, usedforsecurity, string);
15381538
}
15391539
#endif /* PY_OPENSSL_HAS_SHAKE */
15401540

0 commit comments

Comments
 (0)