DH: Make DH_bits(), DH_size(), and DH_security_bits() check that there are key parameters
[openssl.git] / doc / man3 / DH_size.pod
index 099c1bad3f8e45f312fbd1b33cc4cd8277c5fd8a..99e34034f2cbbcbec3f47cc2f1493ae0daba7afc 100644 (file)
@@ -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