pike.git/
src/
post_modules/
Nettle/
hogweed.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-05-16
2017-05-16 16:40:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ca8bd183230a8b51c196b95ca2475e3b6b391cb9 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
Build
[Nettle]
: Fixed some more C99-isms.
999:
INIT {
+
struct svalue *random;
const struct ecc_curve *curve = (((const struct Nettle_ECC_Curve_struct *)parent_storage(1, Nettle_ECC_Curve_program))->curve); if (!curve) Pike_error("No curve selected.\n"); ecc_scalar_init(&THIS->key, curve);
-
struct svalue *
random =
+
random =
simple_mapping_string_lookup(get_builtin_constants(), "random_string"); if(!random || (TYPEOF(*random) != T_FUNCTION)) Pike_error("Unable to resolve random function.\n");