From 7e6c4c894594262b3bf7586f44f4e928164ede0d Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Thu, 2 Apr 2015 13:09:19 -0700 Subject: [PATCH] Add a couple of compatibility #defines for DH. Change-Id: Ic190c64ec571e798c22c7afa75ae6c2804c93fd4 --- include/openssl/dh.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/openssl/dh.h b/include/openssl/dh.h index 00fc6cf6..3c8f2900 100644 --- a/include/openssl/dh.h +++ b/include/openssl/dh.h @@ -144,6 +144,10 @@ OPENSSL_EXPORT int DH_size(const DH *dh); #define DH_CHECK_INVALID_Q_VALUE 0x20 #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_*| flags in |*out_flags| if it finds any errors. It returns one if * |*out_flags| was successfully set and zero on error.