remove @EAP_LDFLAGS@, no longer exists
[mech_eap.orig] / libeap / src / eap_common / eap_common.h
diff --git a/libeap/src/eap_common/eap_common.h b/libeap/src/eap_common/eap_common.h
new file mode 100644 (file)
index 0000000..9db77ed
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * EAP common peer/server definitions
+ * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef EAP_COMMON_H
+#define EAP_COMMON_H
+
+#include "wpabuf.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const u8 * eap_hdr_validate(int vendor, EapType eap_type,
+                           const struct wpabuf *msg, size_t *plen);
+struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
+                             u8 code, u8 identifier);
+void eap_update_len(struct wpabuf *msg);
+u8 eap_get_id(const struct wpabuf *msg);
+EapType eap_get_type(const struct wpabuf *msg);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* EAP_COMMON_H */