mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
Some warning fixes.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include <openssl/gmsdf.h>
|
||||
#include <openssl/gmsaf.h>
|
||||
#include <openssl/engine.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
typedef struct saf_app_st {
|
||||
ENGINE *engine;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(¶ms, event, sizeof(event), &otp, key, sizeof(key))) {
|
||||
printf("OTP_generate() failed\n");
|
||||
return -1;
|
||||
|
||||
@@ -70,6 +70,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
#else
|
||||
|
||||
#include <ctype.h>
|
||||
#include <openssl/serpent.h>
|
||||
|
||||
char *plain[] =
|
||||
|
||||
Reference in New Issue
Block a user