diff --git a/sexp2dsa.c b/sexp2dsa.c index cb76853fcdc978020adff014c1b93901ccd0229a..c947546f963587d3e8f1728a80effc5c74620a65 100644 --- a/sexp2dsa.c +++ b/sexp2dsa.c @@ -54,7 +54,7 @@ dsa_keypair_from_sexp_alist(struct dsa_public_key *pub, unsigned limit, struct sexp_iterator *i) { - static const uint8_t *names[5] + static const uint8_t * const names[5] = { "p", "q", "g", "y", "x" }; struct sexp_iterator values[5]; unsigned nvalues = priv ? 5 : 4; @@ -91,7 +91,7 @@ int dsa_signature_from_sexp(struct dsa_signature *rs, struct sexp_iterator *i) { - static const uint8_t *names[2] = { "r", "s" }; + static const uint8_t * const names[2] = { "r", "s" }; struct sexp_iterator values[2]; if (!sexp_iterator_assoc(i, 2, names, values)) diff --git a/sexp2rsa.c b/sexp2rsa.c index 48fe3abef46f45d62f2a17822bf28ff519ef278a..9416ba985f19c55f687f8e78a178bf713b33dfe7 100644 --- a/sexp2rsa.c +++ b/sexp2rsa.c @@ -54,7 +54,7 @@ rsa_keypair_from_sexp_alist(struct rsa_public_key *pub, unsigned limit, struct sexp_iterator *i) { - static const uint8_t *names[8] + static const uint8_t * const names[8] = { "n", "e", "d", "p", "q", "a", "b", "c" }; struct sexp_iterator values[8]; unsigned nvalues = priv ? 8 : 2; @@ -94,7 +94,7 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub, unsigned length, const uint8_t *expr) { struct sexp_iterator i; - static const uint8_t *names[3] + static const uint8_t * const names[3] = { "rsa", "rsa-pkcs1", "rsa-pkcs1-sha1" }; if (!sexp_iterator_first(&i, length, expr))