Make peer headers build with C++ sources
[libeap.git] / src / eap_common / eap_ikev2_common.h
index a9fc2ca..a054b6a 100644 (file)
 #ifndef EAP_IKEV2_COMMON_H
 #define EAP_IKEV2_COMMON_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef CCNS_PL
 /* incorrect bit order */
 #define IKEV2_FLAGS_LENGTH_INCLUDED 0x01
@@ -39,4 +43,8 @@ int eap_ikev2_validate_icv(int integ_alg, struct ikev2_keys *keys,
                           int initiator, const struct wpabuf *msg,
                           const u8 *pos, const u8 *end);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_IKEV2_COMMON_H */