#ifndef HEADER_DH_H
#define HEADER_DH_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifdef NO_DH
#error DH is disabled.
#endif
#define DH_FLAG_CACHE_MONT_P 0x01
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct dh_st DH;
typedef struct dh_method {
/* Place holders if we want to do X9.42 DH */
BIGNUM *q;
BIGNUM *j;
- unsigned *seed;
+ unsigned char *seed;
int seedlen;
BIGNUM *counter;