summaryrefslogtreecommitdiff
path: root/c/src/encarchive.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/encarchive.h')
-rw-r--r--c/src/encarchive.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/c/src/encarchive.h b/c/src/encarchive.h
new file mode 100644
index 0000000..1649e07
--- /dev/null
+++ b/c/src/encarchive.h
@@ -0,0 +1,44 @@
+/**
+ * GPGSecure manages GPG encrypted archives
+ * Copyright (C) 2018 Aaron Ball <nullspoon@oper.io>
+ *
+ * This program 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
+#include <archive.h>
+// TODO: man 3 archive_read example only includes <archive.h>, which won't
+// build due to missing archive_entry.h.
+#include <archive_entry.h>
+
+struct clientdata {
+ char* name;
+ int fd;
+ char buff[10240];
+};
+
+/**
+ * TODO
+ */
+int enc_archive_enum(char*);
+
+/**
+ * TODO
+ */
+int enc_archive_extract(char*, char*);

Generated by cgit