Add a couple of compatibility #defines for DH.

Change-Id: Ic190c64ec571e798c22c7afa75ae6c2804c93fd4
This commit is contained in:
Adam Langley 2015-04-02 13:09:19 -07:00
parent 1049e26f6b
commit 7e6c4c8945

View File

@ -144,6 +144,10 @@ OPENSSL_EXPORT int DH_size(const DH *dh);
#define DH_CHECK_INVALID_Q_VALUE 0x20 #define DH_CHECK_INVALID_Q_VALUE 0x20
#define DH_CHECK_INVALID_J_VALUE 0x40 #define DH_CHECK_INVALID_J_VALUE 0x40
/* These are compatibility defines. */
#define DH_NOT_SUITABLE_GENERATOR DH_CHECK_NOT_SUITABLE_GENERATOR
#define DH_UNABLE_TO_CHECK_GENERATOR DH_CHECK_UNABLE_TO_CHECK_GENERATOR
/* DH_check checks the suitability of |dh| as a Diffie-Hellman group. and sets /* DH_check checks the suitability of |dh| as a Diffie-Hellman group. and sets
* |DH_CHECK_*| flags in |*out_flags| if it finds any errors. It returns one if * |DH_CHECK_*| flags in |*out_flags| if it finds any errors. It returns one if
* |*out_flags| was successfully set and zero on error. * |*out_flags| was successfully set and zero on error.