summaryrefslogtreecommitdiff
path: root/lib/gnutls_x509.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-05-15 22:00:22 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-03 19:41:28 +0200
commitbe560a8138daced8f37f2b6012e4417311dd4983 (patch)
tree6b9277b807cf15c8bc48ee671e17b0e803594cf7 /lib/gnutls_x509.h
parent2750317ca1d76ab6524b231e69af7ac152449fbf (diff)
downloadgnutls-be560a8138daced8f37f2b6012e4417311dd4983.tar.gz
Added gnutls_pkcs11_privkey_t and gnutls_privkey_t types. Those are
an abstract private key type that can be used to sign/encrypt any private key of pkcs11,x509 or openpgp types. Added support for PKCS11 in gnutls-cli/gnutls-serv.
Diffstat (limited to 'lib/gnutls_x509.h')
-rw-r--r--lib/gnutls_x509.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gnutls_x509.h b/lib/gnutls_x509.h
index 0f56063fcf..bdc6a369a2 100644
--- a/lib/gnutls_x509.h
+++ b/lib/gnutls_x509.h
@@ -24,6 +24,7 @@
*/
#include <libtasn1.h>
+#include <gnutls/privkey.h>
int _gnutls_x509_cert_verify_peers (gnutls_session_t session,
unsigned int *status);
@@ -39,8 +40,6 @@ int _gnutls_x509_cert_verify_peers (gnutls_session_t session,
int _gnutls_check_key_usage (const gnutls_cert * cert,
gnutls_kx_algorithm_t alg);
-int _gnutls_x509_raw_privkey_to_gkey (gnutls_privkey * privkey,
+int _gnutls_x509_raw_privkey_to_gkey (gnutls_privkey_t * privkey,
const gnutls_datum_t * raw_key,
gnutls_x509_crt_fmt_t type);
-int _gnutls_x509_privkey_to_gkey (gnutls_privkey * privkey,
- gnutls_x509_privkey_t);