From: Niels Möller Date: Sun, 16 Nov 2003 18:30:21 +0000 (+0100) Subject: (yarrow256_seed): Use const for the seed_file input. X-Git-Tag: nettle_1.8_release_20040110~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=440a2580052f5f69feed732850cdba3da77f40f8;p=thirdparty%2Fnettle.git (yarrow256_seed): Use const for the seed_file input. Rev: src/nettle/ChangeLog:1.215 Rev: src/nettle/yarrow.h:1.11 Rev: src/nettle/yarrow256.c:1.18 --- diff --git a/ChangeLog b/ChangeLog index 5de7306c..52cb7bdf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-11-16 Niels Möller + + * yarrow256.c (yarrow256_seed): Use const for the seed_file input. + 2003-11-12 Niels Möller * list-obj-sizes.awk: New function for decoding hex values, with a diff --git a/yarrow.h b/yarrow.h index a83e53d3..36f8741e 100644 --- a/yarrow.h +++ b/yarrow.h @@ -81,7 +81,7 @@ yarrow256_init(struct yarrow256_ctx *ctx, void yarrow256_seed(struct yarrow256_ctx *ctx, unsigned length, - uint8_t *seed_file); + const uint8_t *seed_file); /* Returns 1 on reseed */ int diff --git a/yarrow256.c b/yarrow256.c index ba06fdc4..60604a8d 100644 --- a/yarrow256.c +++ b/yarrow256.c @@ -107,7 +107,7 @@ yarrow256_init(struct yarrow256_ctx *ctx, void yarrow256_seed(struct yarrow256_ctx *ctx, unsigned length, - uint8_t *seed_file) + const uint8_t *seed_file) { /* FIXME: Perhaps it's better to use assert ? */ if (!length)