Skip to content

Commit 179dd6e

Browse files
committed
fix
remove VC warnings
1 parent 13e33b4 commit 179dd6e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crypto/sm2/sm2test.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ int hexequbin(const char *hex, const unsigned char *bin, size_t binlen)
6868
{
6969
int ret = 0;
7070
char *buf = NULL;
71-
int i = 0;
71+
size_t i = 0;
7272
size_t buflen = binlen * 2 + 1;
7373

7474

@@ -799,8 +799,6 @@ int test_evp_pkey_encrypt(EVP_PKEY *pkey, int do_sm2, int verbose)
799799
size_t cbuflen = sizeof(cbuf);
800800
unsigned char mbuf[512];
801801
size_t mbuflen = sizeof(mbuf);
802-
int len;
803-
unsigned int ulen;
804802

805803
if (!(pkctx = EVP_PKEY_CTX_new(pkey, NULL))) {
806804
fprintf(stderr, "error: %s %d\n", __FILE__, __LINE__);
@@ -920,7 +918,6 @@ int test_evp_sign(EVP_PKEY *pkey, const EVP_MD *md, int verbose)
920918
size_t msglen = sizeof(msg);
921919
unsigned char sig[256];
922920
unsigned int siglen = (unsigned int)sizeof(sig);
923-
unsigned int i;
924921

925922
if (!(mdctx = EVP_MD_CTX_create())) {
926923
fprintf(stderr, "error: %s %d\n", __FILE__, __LINE__);

0 commit comments

Comments
 (0)