aboutsummaryrefslogtreecommitdiff
path: root/crypto/dh/dh.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dh/dh.h')
-rw-r--r--crypto/dh/dh.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index db4e110..28a1b42 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -78,9 +78,12 @@
extern "C" {
#endif
-typedef struct dh_st DH;
+/* Already defined in ossl_typ.h */
+/* typedef struct dh_st DH; */
+/* typedef struct dh_method DH_METHOD; */
-typedef struct dh_method {
+struct dh_method
+ {
const char *name;
/* Methods here */
int (*generate_key)(DH *dh);
@@ -95,7 +98,7 @@ typedef struct dh_method {
char *app_data;
/* If this is non-NULL, it will be used to generate parameters */
int (*generate_params)(DH *dh, int prime_len, int generator, BN_GENCB *cb);
-} DH_METHOD;
+ };
struct dh_st
{