summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dh/dh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/dh/dh.h')
-rw-r--r--src/lib/libcrypto/dh/dh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h
index 8562d16fb7..582b34329f 100644
--- a/src/lib/libcrypto/dh/dh.h
+++ b/src/lib/libcrypto/dh/dh.h
@@ -70,6 +70,8 @@
70#include <openssl/crypto.h> 70#include <openssl/crypto.h>
71#include <openssl/ossl_typ.h> 71#include <openssl/ossl_typ.h>
72 72
73#define OPENSSL_DH_MAX_MODULUS_BITS 10000
74
73#define DH_FLAG_CACHE_MONT_P 0x01 75#define DH_FLAG_CACHE_MONT_P 0x01
74#define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH 76#define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH
75 * implementation now uses constant time 77 * implementation now uses constant time
@@ -213,6 +215,7 @@ void ERR_load_DH_strings(void);
213#define DH_R_BAD_GENERATOR 101 215#define DH_R_BAD_GENERATOR 101
214#define DH_R_NO_PRIVATE_VALUE 100 216#define DH_R_NO_PRIVATE_VALUE 100
215#define DH_R_INVALID_PUBKEY 102 217#define DH_R_INVALID_PUBKEY 102
218#define DH_R_MODULUS_TOO_LARGE 103
216 219
217#ifdef __cplusplus 220#ifdef __cplusplus
218} 221}