aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/dh/dh.h')
-rw-r--r--crypto/dh/dh.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index 19bd570309e..c15b2ad4836 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -59,6 +59,10 @@
#ifndef HEADER_DH_H
#define HEADER_DH_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef NO_DH
#error DH is disabled.
#endif
@@ -68,10 +72,6 @@
#define DH_FLAG_CACHE_MONT_P 0x01
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct dh_st DH;
typedef struct dh_method {