aboutsummaryrefslogtreecommitdiff
path: root/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto.h b/crypto.h
index ae5c958..19fc15f 100644
--- a/crypto.h
+++ b/crypto.h
@@ -108,6 +108,9 @@ void commit_transaction(void *db);
void *deserialize_file(int cl, size_t *len);
void serialize_file(int cl, const void *buf, size_t len);
+void *load_file(const char *path, size_t *len);
+void write_file(const char *path, const void *contents, size_t len);
+
void warn(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
/* self-test */