dsa/dsa_gen: add error message for seed_len < 0
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Mon, 3 Oct 2016 15:54:06 +0000 (17:54 +0200)
committerRich Salz <rsalz@openssl.org>
Mon, 14 Nov 2016 13:56:09 +0000 (08:56 -0500)
commitaf5474126546b558b0e6f8be4bec4b70977e24b7
tree8d042d5a56089fe5d7d1ec33ee44c1c991889e4d
parent1fda5bc435ada1c70f2d3342bb9db98ac5840dc9
dsa/dsa_gen: add error message for seed_len < 0

prio openssl 1.1.0 seed_len < q was accepted and the seed argument was
then ignored. Now DSA_generate_parameters_ex() returns an error in such
a case but no error string.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1657)
crypto/dsa/dsa_err.c
crypto/dsa/dsa_gen.c
include/openssl/dsa.h