pike.git/
src/
post_modules/
Nettle/
hogweed.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2013-12-02
2013-12-02 15:23:08 by Martin Nilsson <nilsson@opera.com>
28aa0692831701fb57f4d5bce0738ae8a54d3e34 (
7
lines) (+
3
/-
4
)
[
Show
|
Annotate
]
Branch:
8.0
Throw exception instead of (incorrectly) returning 0.
83:
if( !nettle_dsa_generate_keypair(&pub, &key, rnd, random_func_wrapper, NULL, NULL, p_bits, q_bits) ) {
-
pop
_
n_elems
(
8);
-
RETURN 0
;
+
Pike
_
error
(
"Illegal
parameter
value.\n")
;
} memcpy(get_storage(p, auto_bignum_program.u.program), &pub.p, sizeof(mpz_t));
137:
if( !nettle_rsa_generate_keypair(&pub, &key, rnd, random_func_wrapper, NULL, NULL, bits, 0) ) {
-
pop
_
n_elems
(
10);
-
RETURN 0
;
+
Pike
_
error
(
"Illegal
parameter
value.\n")
;
} memcpy(get_storage(n, auto_bignum_program.u.program), &pub.n, sizeof(mpz_t));