summaryrefslogtreecommitdiffstats
path: root/src/keyapi.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-10-13 17:40:45 +0000
committerLennart Poettering <lennart@poettering.net>2003-10-13 17:40:45 +0000
commitf350c50a1a059489666ce31f33153771626182ea (patch)
tree23487b9aefaaf0ad95e4f45b89205f76812463ec /src/keyapi.h
parent866bc8fd59b7134b800faad565ed00b2e3b09b36 (diff)
Large commit
git-svn-id: file:///home/lennart/svn/public/aeswepd/trunk@20 022f378f-78c4-0310-b860-d162c87e6274
Diffstat (limited to 'src/keyapi.h')
-rw-r--r--src/keyapi.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/keyapi.h b/src/keyapi.h
new file mode 100644
index 0000000..14fe341
--- /dev/null
+++ b/src/keyapi.h
@@ -0,0 +1,37 @@
+#ifndef fookeyapihfoo
+#define fookeyapihfoo
+
+/* $Id$ */
+
+/*
+ * This file is part of aeswepd.
+ *
+ * aeswepd is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * aeswepd is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with aeswepd; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+#include <stdint.h>
+
+#include "aeswepd.h"
+
+struct key_api {
+ void* (*open)(const char* name);
+ int (*add)(void *c, const uint8_t w[WEP_KEY_LEN]);
+ int (*finish)(void *c);
+ void (*close)(void *c);
+};
+
+const struct key_api* key_api_get(const char *c);
+
+#endif