Some warning fixes.

This commit is contained in:
Zhi Guan
2018-01-07 12:02:24 +08:00
parent 86e1fc9266
commit 61f6b7ea98
4 changed files with 2 additions and 6 deletions

View File

@@ -105,10 +105,6 @@ int main(int argc, char **argv)
return 0;
/* init openssl global functions */
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
/* prepare cpk setup parameters */
if (!(ec_key = EC_KEY_new_by_curve_name(OBJ_sn2nid("prime192v1")))) {
goto end;

View File

@@ -77,8 +77,6 @@ int main(int argc, char **argv)
params.option_size = 0;
params.otp_digits = 6;
OpenSSL_add_all_algorithms();
if (!OTP_generate(&params, event, sizeof(event), &otp, key, sizeof(key))) {
printf("OTP_generate() failed\n");
return -1;

View File

@@ -70,6 +70,7 @@ int main(int argc, char **argv)
}
#else
#include <ctype.h>
#include <openssl/serpent.h>
char *plain[] =