summaryrefslogtreecommitdiffstats
path: root/src/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/crypto.h b/src/crypto.h
new file mode 100644
index 0000000..a8b5ca0
--- /dev/null
+++ b/src/crypto.h
@@ -0,0 +1,17 @@
+/* Copyright (C) 2014 mod_auth_gssapi authors - See COPYING for (C) terms */
+
+#include <apr_errno.h>
+#include <apr_pools.h>
+
+struct seal_key;
+
+struct databuf {
+ unsigned char *value;
+ int length;
+};
+
+apr_status_t SEAL_KEY_CREATE(struct seal_key **skey);
+apr_status_t SEAL_BUFFER(apr_pool_t *p, struct seal_key *skey,
+ struct databuf *plain, struct databuf *cipher);
+apr_status_t UNSEAL_BUFFER(apr_pool_t *p, struct seal_key *skey,
+ struct databuf *cipher, struct databuf *plain);