summaryrefslogtreecommitdiff
path: root/sexp2rsa.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-08-16 07:28:23 +0200
committerNiels Möller <nisse@lysator.liu.se>2016-08-16 07:30:16 +0200
commit2a65d90b0bb01cad7f827858741901b1e1ee65fe (patch)
tree83fd51d7de77aff655e5d7d8d5a473546dfa8b62 /sexp2rsa.c
parentef97526d169ea115735a17dd8c37f5f10b45e240 (diff)
downloadnettle-2a65d90b0bb01cad7f827858741901b1e1ee65fe.tar.gz
Use const char * for sexp expression types.
Diffstat (limited to 'sexp2rsa.c')
-rw-r--r--sexp2rsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sexp2rsa.c b/sexp2rsa.c
index 7a664fd5..52710436 100644
--- a/sexp2rsa.c
+++ b/sexp2rsa.c
@@ -59,7 +59,7 @@ rsa_keypair_from_sexp_alist(struct rsa_public_key *pub,
unsigned limit,
struct sexp_iterator *i)
{
- static const uint8_t * const names[8]
+ static const char * const names[8]
= { "n", "e", "d", "p", "q", "a", "b", "c" };
struct sexp_iterator values[8];
unsigned nvalues = priv ? 8 : 2;
@@ -99,7 +99,7 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub,
size_t length, const uint8_t *expr)
{
struct sexp_iterator i;
- static const uint8_t * const names[3]
+ static const char * const names[3]
= { "rsa", "rsa-pkcs1", "rsa-pkcs1-sha1" };
if (!sexp_iterator_first(&i, length, expr))