[python extension] update key_gen() parse tuple format arg to handle hmac_type integer
This commit is contained in:
parent
e4689892ef
commit
8c3cab0269
@ -1258,7 +1258,7 @@ key_gen(PyObject *self, PyObject *args)
|
||||
int hmac_type;
|
||||
int res;
|
||||
|
||||
if(!PyArg_ParseTuple(args, "s#s#i", &key_b64, &key_b64_len,
|
||||
if(!PyArg_ParseTuple(args, "s#s#ih", &key_b64, &key_b64_len,
|
||||
&hmac_key_b64, &hmac_key_b64_len, &hmac_type))
|
||||
return NULL;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user