mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-07 21:53:41 +08:00
Some warning fixes.
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
#include <openssl/gmsdf.h>
|
#include <openssl/gmsdf.h>
|
||||||
#include <openssl/gmsaf.h>
|
#include <openssl/gmsaf.h>
|
||||||
#include <openssl/engine.h>
|
#include <openssl/engine.h>
|
||||||
|
#include <openssl/err.h>
|
||||||
|
|
||||||
typedef struct saf_app_st {
|
typedef struct saf_app_st {
|
||||||
ENGINE *engine;
|
ENGINE *engine;
|
||||||
|
|||||||
@@ -105,10 +105,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* init openssl global functions */
|
|
||||||
ERR_load_crypto_strings();
|
|
||||||
OpenSSL_add_all_algorithms();
|
|
||||||
|
|
||||||
/* prepare cpk setup parameters */
|
/* prepare cpk setup parameters */
|
||||||
if (!(ec_key = EC_KEY_new_by_curve_name(OBJ_sn2nid("prime192v1")))) {
|
if (!(ec_key = EC_KEY_new_by_curve_name(OBJ_sn2nid("prime192v1")))) {
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
@@ -77,8 +77,6 @@ int main(int argc, char **argv)
|
|||||||
params.option_size = 0;
|
params.option_size = 0;
|
||||||
params.otp_digits = 6;
|
params.otp_digits = 6;
|
||||||
|
|
||||||
OpenSSL_add_all_algorithms();
|
|
||||||
|
|
||||||
if (!OTP_generate(¶ms, event, sizeof(event), &otp, key, sizeof(key))) {
|
if (!OTP_generate(¶ms, event, sizeof(event), &otp, key, sizeof(key))) {
|
||||||
printf("OTP_generate() failed\n");
|
printf("OTP_generate() failed\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
#include <openssl/serpent.h>
|
#include <openssl/serpent.h>
|
||||||
|
|
||||||
char *plain[] =
|
char *plain[] =
|
||||||
|
|||||||
Reference in New Issue
Block a user