summaryrefslogtreecommitdiff
path: root/keystore.h
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-08-18 18:51:25 (GMT)
committerSamuel Lidén Borell <samuel@slbdata.se>2010-08-18 18:51:25 (GMT)
commite26a1b0421f786b0653dd06e9e9ec112b1a30a79 (patch)
tree1546147a326374eb4f6d342fd936e6790a20d3ad /keystore.h
downloadfishlim-e26a1b0421f786b0653dd06e9e9ec112b1a30a79.zip
fishlim-e26a1b0421f786b0653dd06e9e9ec112b1a30a79.tar.gz
fishlim-e26a1b0421f786b0653dd06e9e9ec112b1a30a79.tar.bz2
First version with working decryption
Diffstat (limited to 'keystore.h')
-rw-r--r--keystore.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/keystore.h b/keystore.h
new file mode 100644
index 0000000..5f326be
--- /dev/null
+++ b/keystore.h
@@ -0,0 +1,37 @@
+/*
+
+ Copyright (c) 2010 Samuel Lidén Borell <samuel@slbdata.se>
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+*/
+
+#ifndef KEYSTORE_H
+#define KEYSTORE_H
+
+#include <stdbool.h>
+#include <stddef.h>
+
+char *keystore_get_key(const char *nick);
+bool keystore_store_key(const char *nick, const char *key);
+
+void keystore_secure_free(void *ptr, size_t size);
+
+#endif
+