Correct value of DH_CHECK_PUBKEY_INVALID
authorMatt Caswell <matt@openssl.org>
Fri, 29 Jan 2016 09:38:06 +0000 (09:38 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Jan 2016 11:53:32 +0000 (11:53 +0000)
A new return value for DH_check_pub_key was recently added:
DH_CHECK_PUBKEY_INVALID. As this is a flag which can be ORed with other
return values it should have been set to the value 4 not 3.

RT#4278

Reviewed-by: Andy Polyakov <appro@openssl.org>
include/openssl/dh.h

index 90cfb82d8521be340186dc4b1f3dc7bc94261f62..74bc9891a8c12892936f8bf533361407af94ecda 100644 (file)
@@ -174,7 +174,7 @@ struct dh_st {
 /* DH_check_pub_key error codes */
 # define DH_CHECK_PUBKEY_TOO_SMALL       0x01
 # define DH_CHECK_PUBKEY_TOO_LARGE       0x02
-# define DH_CHECK_PUBKEY_INVALID         0x03
+# define DH_CHECK_PUBKEY_INVALID         0x04
 
 /*
  * primes p where (p-1)/2 is prime too are called "safe"; we define this for