summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/otrlextensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/src/otrlextensions.h')
-rw-r--r--plugins/MirOTR/src/otrlextensions.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/MirOTR/src/otrlextensions.h b/plugins/MirOTR/src/otrlextensions.h
new file mode 100644
index 0000000000..c0fa75c673
--- /dev/null
+++ b/plugins/MirOTR/src/otrlextensions.h
@@ -0,0 +1,35 @@
+/*
+ * otrlextensions.h - Off-the-Record Messaging library extensions
+ *
+ * Strongly based on parts of the Off-the-Record Messaging library,
+ * Copyright (C) 2004-2008 Ian Goldberg, Chris Alexander, Nikita Borisov
+ * <otr@cypherpunks.ca>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of version 2.1 of the GNU Lesser General
+ * Public License as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef __OTRLEXT_H__
+#define __OTRLEXT_H__
+
+#include <stdio.h>
+#include <userstate.h>
+
+/* Store all keys of an OtrlUserState. */
+gcry_error_t otrl_privkey_write(OtrlUserState us, const char* filename);
+
+/* Store all keys of an OtrlUserState.
+ * The FILE* must be open for reading and writing. */
+gcry_error_t otrl_privkey_write_FILEp(OtrlUserState us, FILE* privf);
+
+#endif