diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-03-23 19:29:29 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-03-23 19:29:29 +0000 |
commit | 0b5eab6ea262a3eb50a04234a0346d11ca706905 (patch) | |
tree | f34ce403c81062c32de9dd34f63f1aedc73beb0f /includes | |
parent | d871b05901c30bce8e615b3b5ed1f8b88703a701 (diff) | |
download | gnutls-0b5eab6ea262a3eb50a04234a0346d11ca706905.tar.gz |
Allow for unencrypted PKCS #8 private keys.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/gnutls/x509.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/gnutls/x509.h b/includes/gnutls/x509.h index e79f8aba0a..995a3c765e 100644 --- a/includes/gnutls/x509.h +++ b/includes/gnutls/x509.h @@ -192,12 +192,18 @@ int gnutls_x509_crt_get_fingerprint(gnutls_x509_crt cert, /* Private key handling */ +typedef enum gnutls_privkey_pkcs8_flags { + GNUTLS_PKCS8_PLAIN=1, /* if set the private key will not + * be encrypted. + */ +} gnutls_privkey_pkcs8_flags; + int gnutls_x509_privkey_init(gnutls_x509_privkey * key); void gnutls_x509_privkey_deinit(gnutls_x509_privkey key); int gnutls_x509_privkey_import(gnutls_x509_privkey key, const gnutls_datum * data, gnutls_x509_crt_fmt format); int gnutls_x509_privkey_import_pkcs8(gnutls_x509_privkey key, const gnutls_datum * data, - gnutls_x509_crt_fmt format, char * pass); + gnutls_x509_crt_fmt format, char * pass, unsigned int flags); 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, |