Make peer headers build with C++ sources
[libeap.git] / src / eap_peer / eap_tls_common.h
index e9e0998..53ed1a9 100644 (file)
 #ifndef EAP_TLS_COMMON_H
 #define EAP_TLS_COMMON_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * struct eap_ssl_data - TLS data for EAP methods
  */
@@ -123,4 +127,8 @@ int eap_peer_select_phase2_methods(struct eap_peer_config *config,
 int eap_peer_tls_phase2_nak(struct eap_method_type *types, size_t num_types,
                            struct eap_hdr *hdr, struct wpabuf **resp);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAP_TLS_COMMON_H */