Replaced printf() by log_msg().

This commit is contained in:
Franck Joncourt 2013-05-06 10:02:02 +02:00
parent 327257ef5f
commit b3cbf1ecfa

View File

@ -220,12 +220,14 @@ main(int argc, char **argv)
fprintf(key_gen_file_ptr, "KEY_BASE64: %s\nHMAC_KEY_BASE64: %s\n", fprintf(key_gen_file_ptr, "KEY_BASE64: %s\nHMAC_KEY_BASE64: %s\n",
options.key_base64, options.hmac_key_base64); options.key_base64, options.hmac_key_base64);
fclose(key_gen_file_ptr); fclose(key_gen_file_ptr);
printf("[+] Wrote Rijndael and HMAC keys to: %s\n", log_msg(LOG_VERBOSITY_NORMAL,
"[+] Wrote Rijndael and HMAC keys to: %s",
options.key_gen_file); options.key_gen_file);
} }
else else
{ {
printf("KEY_BASE64: %s\nHMAC_KEY_BASE64: %s\n", log_msg(LOG_VERBOSITY_NORMAL,
"KEY_BASE64: %s\nHMAC_KEY_BASE64: %s",
options.key_base64, options.hmac_key_base64); options.key_base64, options.hmac_key_base64);
} }
return(EXIT_SUCCESS); return(EXIT_SUCCESS);