pike.git/
src/
post_modules/
Nettle/
nettle.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2009-07-01
2009-07-01 11:38:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ad675381b059af3d37e1259679e57afa05ddf2d2 (
17
lines) (+
16
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added some FIXME notes about compat with Nettle 2.0.
Rev: src/post_modules/Nettle/nettle.cmod:1.48
1:
/* nettle.cmod -*- c -*- */
-
/* $Id: nettle.cmod,v 1.
47
2008
/
06
/
28
22
:
57
:
14
nilsson
Exp $ */
+
/* $Id: nettle.cmod,v 1.
48
2009
/
07
/
01
11
:
38
:
59
grubba
Exp $ */
#include "global.h" #include "interpret.h"
120:
{ if( !yarrow256_is_seeded(&THIS->ctx) ) Pike_error("Random generator not seeded.\n");
+
+
/* FIXME: From change notes for Nettle 2.0:
+
*
+
* * Changes to the yarrow256 interface. The automatic seed file
+
* generation, and the seed_file member in struct
+
* yarrow256_ctx, has been removed. To generate a new seed
+
* file, use yarrow256_random. The function
+
* yarrow256_force_reseed has been replaced by the two
+
* functions yarrow256_fast_reseed and yarrow256_slow_reseed,
+
* which were previously static. This interface change makes it
+
* easier to mix in the current content of the seed file before
+
* overwriting it with newly generated data.
+
*/
+
RETURN make_shared_binary_string((const char *)THIS->ctx.seed_file, YARROW256_SEED_FILE_SIZE); }