[python extension] update key_gen() parse tuple format arg to handle hmac_type integer

This commit is contained in:
Michael Rash 2013-03-19 21:15:45 -04:00
parent e4689892ef
commit 8c3cab0269

View File

@ -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;