Skip to content

Commit 19c74cb

Browse files
authored
Apply suggestions from code review
1 parent db6f4db commit 19c74cb

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Modules/_hashopenssl.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ py_wrapper_ERR_reason_error_string(unsigned long errcode)
329329
/*
330330
* Set an exception with additional information.
331331
*
332-
* This is only useful in OpenSSL 3 and later as the default reason
333-
* usually lack information and function locations are no more encoded
332+
* This is only useful in OpenSSL 3.0 and later as the default reason
333+
* usually lack information and function locations are no longer encoded
334334
* in the error code.
335335
*/
336336
static void
@@ -620,10 +620,9 @@ get_hashlib_utf8name_by_evp_md(const EVP_MD *md)
620620
}
621621

622622
/*
623-
* Return 1 if the FIPS query property should be disabled.
623+
* Return 1 if the property query clause [1] must be "-fips" and 0 otherwise.
624624
*
625-
* Note that returning 0 does not necesasrily mean that the
626-
* fetched algorithm will be available. For instance, a FIPS
625+
* [1] https://docs.openssl.org/master/man7/property
627626
*/
628627
static inline int
629628
disable_fips_property(Py_hash_type py_ht)
@@ -1798,7 +1797,6 @@ _hashlib_hmac_singleshot_impl(PyObject *module, Py_buffer *key,
17981797
md, &md_len
17991798
);
18001799
Py_END_ALLOW_THREADS
1801-
18021800
PY_EVP_MD_free(evp);
18031801

18041802
if (result == NULL) {

0 commit comments

Comments
 (0)