@@ -260,7 +260,7 @@ static PyModuleDef _hashlibmodule;
260
260
261
261
typedef struct {
262
262
PyTypeObject * HASH_type ; // based on EVP_MD
263
- PyTypeObject * HMACtype ;
263
+ PyTypeObject * HMAC_type ;
264
264
#ifdef PY_OPENSSL_HAS_SHAKE
265
265
PyTypeObject * HASHXOF_type ; // based on EVP_MD
266
266
#endif
@@ -300,11 +300,11 @@ typedef struct {
300
300
#include "clinic/_hashopenssl.c.h"
301
301
/*[clinic input]
302
302
module _hashlib
303
- class _hashlib.HASH "HASHobject *" "((_hashlibstate *)PyModule_GetState(module))->EVPtype "
304
- class _hashlib.HASHXOF "HASHobject *" "((_hashlibstate *)PyModule_GetState(module))->EVPXOFtype "
305
- class _hashlib.HMAC "HMACobject *" "((_hashlibstate *)PyModule_GetState(module))->HMACtype "
303
+ class _hashlib.HASH "HASHobject *" "((_hashlibstate *)PyModule_GetState(module))->HASH_type "
304
+ class _hashlib.HASHXOF "HASHobject *" "((_hashlibstate *)PyModule_GetState(module))->HASHXOF_type "
305
+ class _hashlib.HMAC "HMACobject *" "((_hashlibstate *)PyModule_GetState(module))->HMAC_type "
306
306
[clinic start generated code]*/
307
- /*[clinic end generated code: output=da39a3ee5e6b4b0d input=4f6b8873ed13d1ff ]*/
307
+ /*[clinic end generated code: output=da39a3ee5e6b4b0d input=eb805ce4b90b1b31 ]*/
308
308
309
309
310
310
/* LCOV_EXCL_START */
@@ -1643,7 +1643,7 @@ _hashlib_hmac_new_impl(PyObject *module, Py_buffer *key, PyObject *msg_obj,
1643
1643
}
1644
1644
1645
1645
_hashlibstate * state = get_hashlib_state (module );
1646
- self = PyObject_New (HMACobject , state -> HMACtype );
1646
+ self = PyObject_New (HMACobject , state -> HMAC_type );
1647
1647
if (self == NULL ) {
1648
1648
goto error ;
1649
1649
}
@@ -2204,7 +2204,7 @@ hashlib_traverse(PyObject *m, visitproc visit, void *arg)
2204
2204
{
2205
2205
_hashlibstate * state = get_hashlib_state (m );
2206
2206
Py_VISIT (state -> HASH_type );
2207
- Py_VISIT (state -> HMACtype );
2207
+ Py_VISIT (state -> HMAC_type );
2208
2208
#ifdef PY_OPENSSL_HAS_SHAKE
2209
2209
Py_VISIT (state -> HASHXOF_type );
2210
2210
#endif
@@ -2218,7 +2218,7 @@ hashlib_clear(PyObject *m)
2218
2218
{
2219
2219
_hashlibstate * state = get_hashlib_state (m );
2220
2220
Py_CLEAR (state -> HASH_type );
2221
- Py_CLEAR (state -> HMACtype );
2221
+ Py_CLEAR (state -> HMAC_type );
2222
2222
#ifdef PY_OPENSSL_HAS_SHAKE
2223
2223
Py_CLEAR (state -> HASHXOF_type );
2224
2224
#endif
@@ -2296,11 +2296,11 @@ hashlib_init_hmactype(PyObject *module)
2296
2296
{
2297
2297
_hashlibstate * state = get_hashlib_state (module );
2298
2298
2299
- state -> HMACtype = (PyTypeObject * )PyType_FromSpec (& HMACtype_spec );
2300
- if (state -> HMACtype == NULL ) {
2299
+ state -> HMAC_type = (PyTypeObject * )PyType_FromSpec (& HMACtype_spec );
2300
+ if (state -> HMAC_type == NULL ) {
2301
2301
return -1 ;
2302
2302
}
2303
- if (PyModule_AddType (module , state -> HMACtype ) < 0 ) {
2303
+ if (PyModule_AddType (module , state -> HMAC_type ) < 0 ) {
2304
2304
return -1 ;
2305
2305
}
2306
2306
return 0 ;
0 commit comments