[PATCH 2/2] kdf: make self-test test-vector array read-only
Jussi Kivilinna
jussi.kivilinna at iki.fi
Tue Jan 19 19:13:33 CET 2021
* cipher/kdf.c (selftest_pbkdf2): Make 'tv[]' constant.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
cipher/kdf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cipher/kdf.c b/cipher/kdf.c
index b916a3f8..93c2c9f6 100644
--- a/cipher/kdf.c
+++ b/cipher/kdf.c
@@ -342,7 +342,7 @@ check_one (int algo, int hash_algo,
static gpg_err_code_t
selftest_pbkdf2 (int extended, selftest_report_func_t report)
{
- static struct {
+ static const struct {
const char *desc;
const char *p; /* Passphrase. */
size_t plen; /* Length of P. */
--
2.27.0
More information about the Gcrypt-devel
mailing list