2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Fix mistake in b64e invocation

This commit is contained in:
Jarrod Johnson 2022-03-10 09:15:26 -05:00
parent b42e2e4932
commit 301ed7a798

View File

@ -98,7 +98,7 @@ int getpasshmac(int argc, char* argv[]) {
fwrite(cryptpass, 1, strlen(cryptpass), outfile);
fclose(outfile);
hmac_sha256(hmac, cryptpass, strlen(cryptpass), hmackey, hmackeysize);
hmac64 = b64e(hmac);
hmac64 = b64e(hmac, 32);
outfile = fopen(argv[3], "w");
fwrite(hmac64, 1, strlen(hmac64), outfile);
fclose(outfile);