summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSahana Prasad <sahana@redhat.com>2021-01-25 14:44:29 +0100
committerDmitry Belyavskiy <beldmit@gmail.com>2021-02-18 12:04:35 +0100
commit5d8ffebbcdf4992d3c428201b1f3330020bbe92e (patch)
tree553c8a5bb0c77b9dad2a01b0e076c506af84da46 /doc
parent0b3139e815d3d14c4d7506488add6e02a2b682ec (diff)
DH: Make DH_bits(), DH_size(), and DH_security_bits() check that there are key parameters
Fixes #13569 Signed-off-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/13955)
Diffstat (limited to 'doc')
-rw-r--r--doc/man3/DH_size.pod9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/man3/DH_size.pod b/doc/man3/DH_size.pod
index 099c1bad3f..99e34034f2 100644
--- a/doc/man3/DH_size.pod
+++ b/doc/man3/DH_size.pod
@@ -38,11 +38,14 @@ key. See L<BN_security_bits(3)>.
=head1 RETURN VALUES
-DH_bits() returns the number of bits in the key.
+DH_bits() returns the number of bits in the key, or -1 if
+B<dh> doesn't hold any key parameters.
-DH_size() returns the prime size of Diffie-Hellman in bytes.
+DH_size() returns the prime size of Diffie-Hellman in bytes, or -1 if
+B<dh> doesn't hold any key parameters.
-DH_security_bits() returns the number of security bits.
+DH_security_bits() returns the number of security bits, or -1 if
+B<dh> doesn't hold any key parameters.
=head1 SEE ALSO