Remove WIN32 warnings

This commit is contained in:
Zhi Guan
2023-02-06 22:36:39 +08:00
parent d4d2f64aaa
commit 591db2cc01
10 changed files with 5 additions and 12 deletions

View File

@@ -17,7 +17,6 @@
int main(int argc, char **argv)
{
uint8_t buf[4096];
ssize_t len;
uint8_t dgst[32];
int i;

View File

@@ -18,7 +18,7 @@ int main(int argc, char **argv)
{
SM3_CTX sm3_ctx;
uint8_t buf[4096];
ssize_t len;
size_t len;
uint8_t dgst[32];
int i;

View File

@@ -27,7 +27,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (sm4_cbc_decrypt_init(&cbc_ctx, key, iv) != 1) {

View File

@@ -27,7 +27,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (sm4_cbc_encrypt_init(&cbc_ctx, key, iv) != 1) {

View File

@@ -27,7 +27,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (sm4_ctr_encrypt_init(&cbc_ctx, key, ctr) != 1) {

View File

@@ -26,7 +26,7 @@ int main(void)
};
unsigned char inbuf[1024];
unsigned char outbuf[1024 + 32];
ssize_t inlen;
size_t inlen;
size_t outlen;
if (zuc_encrypt_init(&zuc_ctx, key, iv) != 1) {

View File

@@ -2567,7 +2567,6 @@ int x509_revoke_reason_flags_print(FILE *fp, int fmt, int ind, const char *label
int x509_uri_as_distribution_point_name_to_der(const char *uri, size_t urilen,
uint8_t **out, size_t *outlen)
{
int ret;
int tag = ASN1_TAG_EXPLICIT(X509_full_name);
if (urilen == 0) {

View File

@@ -722,7 +722,6 @@ static int test_asn1_from_der_null_args(void)
int val;
const char *str;
const uint8_t *d;
size_t dlen;
time_t t;
uint32_t nodes[32];

View File

@@ -758,7 +758,6 @@ int test_cms_enveloped_data(void)
uint8_t in[80];
uint8_t out[256];
size_t outlen;
size_t maxlen;
uint8_t buf[4096];
uint8_t *p;

View File

@@ -48,9 +48,6 @@ int crlverify_main(int argc, char **argv)
size_t cacertlen;
char signer_id[SM2_MAX_ID_LENGTH + 1] = SM2_DEFAULT_ID;
size_t signer_id_len = strlen(SM2_DEFAULT_ID);
const uint8_t *subject;
size_t subject_len;
int rv;
argc--;