[python extension] update key_gen() parse tuple format arg to handle hmac_type integer
authorMichael Rash <mbr@cipherdyne.org>
Wed, 20 Mar 2013 01:15:45 +0000 (21:15 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 20 Mar 2013 01:15:45 +0000 (21:15 -0400)
python/fkomodule.c

index 1ae8d8c..954b543 100644 (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;