aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/pkcs8.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-10-17 09:48:55 (GMT)
committerJouni Malinen <j@w1.fi>2009-10-17 09:48:55 (GMT)
commitf1739bac4fd62dc984c0a24dc22e56de55525120 (patch)
tree328ebc79629d301a3c53a8aa9a9b0cc3cb45b8c9 /src/tls/pkcs8.h
parent3af9f2983cf143715954212ddf88558b77331626 (diff)
downloadhostap-f1739bac4fd62dc984c0a24dc22e56de55525120.zip
hostap-f1739bac4fd62dc984c0a24dc22e56de55525120.tar.gz
hostap-f1739bac4fd62dc984c0a24dc22e56de55525120.tar.bz2
Move PKCS# {1,5,8} functionality into separate files
This functionality fits better with src/tls (i.e., internal TLS implementation), so move it there to make crypto_internal.c more of a wrapper like other crypto_*.c files.
Diffstat (limited to 'src/tls/pkcs8.h')
-rw-r--r--src/tls/pkcs8.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tls/pkcs8.h b/src/tls/pkcs8.h
new file mode 100644
index 0000000..dac517c
--- /dev/null
+++ b/src/tls/pkcs8.h
@@ -0,0 +1,22 @@
+/*
+ * PKCS #8 (Private-key information syntax)
+ * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef PKCS8_H
+#define PKCS8_H
+
+struct crypto_private_key * pkcs8_key_import(const u8 *buf, size_t len);
+struct crypto_private_key *
+pkcs8_enc_key_import(const u8 *buf, size_t len, const char *passwd);
+
+#endif /* PKCS8_H */