Commit afbb9222 authored by Niels Möller's avatar Niels Möller

Update for Nettle's type change to sexp_iterator_assoc.

parent 664ac33b
2021-01-27 Niels Möller <nisse@lysator.liu.se>
* src/dsa.c (do_dsa_verify): Update for Nettle's type change to
sexp_iterator_assoc.
* src/spki-decrypt.c (parse_pkcs5): Likewise.
(parse_pkcs5_payload): Likewise.
* src/lshd.c (lshd_port_accept): Fix unused argument warnings.
* src/list.c (lsh_list_alloc): Fix warning about statement with no effect.
......
......@@ -131,7 +131,7 @@ do_dsa_verify(struct verifier *c, int algorithm,
{
struct sexp_iterator i;
const uint8_t *names[2] = { "r", "s" };
const char *names[2] = { "r", "s" };
struct sexp_iterator values[2];
if (! (sexp_iterator_first(&i, signature_length, signature_data)
......
......@@ -52,7 +52,7 @@ parse_pkcs5(struct sexp_iterator *i, struct alist *mac_algorithms,
case ATOM_XPKCS5V2:
{
const uint8_t *names[2] = { "salt", "iterations" };
const char *names[2] = { "salt", "iterations" };
struct sexp_iterator values[2];
CAST_SUBTYPE(mac_algorithm, tmp,
......@@ -79,7 +79,7 @@ parse_pkcs5_payload(struct sexp_iterator *i, struct alist *crypto_algorithms,
const struct lsh_string **iv,
const struct lsh_string **data)
{
const uint8_t *names[2] = { "data", "iv" };
const char *names[2] = { "data", "iv" };
struct sexp_iterator values[2];
CAST_SUBTYPE(crypto_algorithm, tmp,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment