Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bpo-20182: add a "py_default" for _hashlib.new() as well
  • Loading branch information
taleinat committed Sep 18, 2018
commit ca7919d02622d96bd76bef00dc9a7e853cd3cc5c
4 changes: 2 additions & 2 deletions Modules/_hashopenssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ EVPnew(PyObject *name_obj,
_hashlib.new as EVP_new

name as name_obj: object
string as data_obj: object = NULL
string as data_obj: object(py_default="b''") = NULL

Return a new hash object using the named algorithm.

Expand All @@ -517,7 +517,7 @@ The MD5 and SHA1 algorithms are always supported.

static PyObject *
EVP_new_impl(PyObject *module, PyObject *name_obj, PyObject *data_obj)
/*[clinic end generated code: output=9e7cf664e04b0226 input=8b50a062cb4cdcaf]*/
/*[clinic end generated code: output=9e7cf664e04b0226 input=1c46e40e0fec91f3]*/
{
Py_buffer view = { 0 };
PyObject *ret_obj;
Expand Down
4 changes: 2 additions & 2 deletions Modules/clinic/_hashopenssl.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.