]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
MSVC: Replace tentative arrays with pointers
authorVitaly Chikunov <vt@altlinux.org>
Fri, 3 Dec 2021 09:14:53 +0000 (12:14 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 11 Dec 2021 16:45:14 +0000 (19:45 +0300)
Error message example:

  gost_prov_cipher.c(237,63): error C2059: syntax error: '}'

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
gost_prov_cipher.c
gost_prov_digest.c

index d64b0ffc888ae54a757e7d66bacf6e806c32987c..ea42f239776b21fca2dfcf8de58fd5c69f7d88aa 100644 (file)
@@ -234,21 +234,21 @@ static int cipher_final(void *vgctx,
     return res > 0;
 }
 
-static const OSSL_PARAM known_Gost28147_89_cipher_params[] = {};
-static const OSSL_PARAM known_Gost28147_89_cbc_cipher_params[] = {};
-static const OSSL_PARAM known_Gost28147_89_cnt_cipher_params[] = {};
-static const OSSL_PARAM known_Gost28147_89_cnt_12_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_ecb_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_cbc_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_cfb_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_ofb_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_ctr_cipher_params[] = {};
-static const OSSL_PARAM known_magma_ctr_cipher_params[] = {};
-static const OSSL_PARAM known_magma_ctr_acpkm_cipher_params[] = {};
-static const OSSL_PARAM known_magma_ctr_acpkm_omac_cipher_params[] = {};
-static const OSSL_PARAM known_magma_cbc_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_ctr_acpkm_cipher_params[] = {};
-static const OSSL_PARAM known_grasshopper_ctr_acpkm_omac_cipher_params[] = {};
+static const OSSL_PARAM *known_Gost28147_89_cipher_params;
+static const OSSL_PARAM *known_Gost28147_89_cbc_cipher_params;
+static const OSSL_PARAM *known_Gost28147_89_cnt_cipher_params;
+static const OSSL_PARAM *known_Gost28147_89_cnt_12_cipher_params;
+static const OSSL_PARAM *known_grasshopper_ecb_cipher_params;
+static const OSSL_PARAM *known_grasshopper_cbc_cipher_params;
+static const OSSL_PARAM *known_grasshopper_cfb_cipher_params;
+static const OSSL_PARAM *known_grasshopper_ofb_cipher_params;
+static const OSSL_PARAM *known_grasshopper_ctr_cipher_params;
+static const OSSL_PARAM *known_magma_ctr_cipher_params;
+static const OSSL_PARAM *known_magma_ctr_acpkm_cipher_params;
+static const OSSL_PARAM *known_magma_ctr_acpkm_omac_cipher_params;
+static const OSSL_PARAM *known_magma_cbc_cipher_params;
+static const OSSL_PARAM *known_grasshopper_ctr_acpkm_cipher_params;
+static const OSSL_PARAM *known_grasshopper_ctr_acpkm_omac_cipher_params;
 /*
  * These are named like the EVP_CIPHER templates in gost_crypt.c, with the
  * added suffix "_functions".  Hopefully, that makes it easy to find the
index 9acd0057a9c0021f07b6fdc7a3c155a5cb04ffe3..79eb5a30a128faf537aaccf3a41291f45fe8d4d7 100644 (file)
@@ -131,9 +131,9 @@ static int digest_final(void *vgctx,
     return res > 0;
 }
 
-static const OSSL_PARAM known_GostR3411_94_digest_params[] = {};
-static const OSSL_PARAM known_GostR3411_2012_256_digest_params[] = {};
-static const OSSL_PARAM known_GostR3411_2012_512_digest_params[] = {};
+static const OSSL_PARAM *known_GostR3411_94_digest_params;
+static const OSSL_PARAM *known_GostR3411_2012_256_digest_params;
+static const OSSL_PARAM *known_GostR3411_2012_512_digest_params;
 
 /*
  * These are named like the EVP_MD templates in gost_md.c etc, with the