summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-12-18 14:19:13 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-12-18 14:19:13 +0000
commit1851a5c8ff0a863d244a8ef535f73b918605825a (patch)
tree1b852443d345acae6374220ab0da4277b5df00d9 /includes
parent4d4fa5bb8a4e2c2fb1fc9ab68a4d6b887e497aa7 (diff)
downloadgnutls-1851a5c8ff0a863d244a8ef535f73b918605825a.tar.gz
Added support for generating and exporting DSA private keys. Exporting to PKCS #8 is still not supported due to lack of standards.
Diffstat (limited to 'includes')
-rw-r--r--includes/gnutls/x509.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/gnutls/x509.h b/includes/gnutls/x509.h
index 143c67abd5..b700726542 100644
--- a/includes/gnutls/x509.h
+++ b/includes/gnutls/x509.h
@@ -274,6 +274,15 @@ int gnutls_x509_privkey_import_rsa_raw(gnutls_x509_privkey privkey,
const gnutls_datum *m, const gnutls_datum *e,
const gnutls_datum *d, const gnutls_datum *p, const gnutls_datum *q,
const gnutls_datum *u);
+
+int gnutls_x509_privkey_export_dsa_raw(gnutls_x509_privkey key,
+ gnutls_datum * p, gnutls_datum *q,
+ gnutls_datum *g, gnutls_datum *y, gnutls_datum* x);
+int gnutls_x509_privkey_import_dsa_raw(gnutls_x509_privkey key,
+ const gnutls_datum* p, const gnutls_datum* q,
+ const gnutls_datum* g, const gnutls_datum* y,
+ const gnutls_datum* x);
+
int gnutls_x509_privkey_get_pk_algorithm( gnutls_x509_privkey key);
int gnutls_x509_privkey_get_key_id( gnutls_x509_privkey key, unsigned int flags,
unsigned char* output_data, size_t* output_data_size);