Mailing List Archive

[PATCH 2/2] kdf: make self-test test-vector array read-only
* cipher/kdf.c (selftest_pbkdf2): Make 'tv[]' constant.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel