summaryrefslogtreecommitdiff
path: root/lib/x509/privkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/privkey.h')
-rw-r--r--lib/x509/privkey.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/x509/privkey.h b/lib/x509/privkey.h
index a0f0939a05..e4865405db 100644
--- a/lib/x509/privkey.h
+++ b/lib/x509/privkey.h
@@ -1,15 +1,18 @@
typedef enum gnutls_pkcs_encrypt_flags_t {
- GNUTLS_PKCS_PLAIN=1, /* if set the private key will not
- * be encrypted.
- */
- GNUTLS_PKCS_USE_PKCS12_3DES=2,
- GNUTLS_PKCS_USE_PKCS12_ARCFOUR=4,
- GNUTLS_PKCS_USE_PKCS12_RC2_40=8,
- GNUTLS_PKCS_USE_PBES2_3DES=16
+ GNUTLS_PKCS_PLAIN = 1, /* if set the private key will not
+ * be encrypted.
+ */
+ GNUTLS_PKCS_USE_PKCS12_3DES = 2,
+ GNUTLS_PKCS_USE_PKCS12_ARCFOUR = 4,
+ GNUTLS_PKCS_USE_PKCS12_RC2_40 = 8,
+ GNUTLS_PKCS_USE_PBES2_3DES = 16
} gnutls_pkcs_encrypt_flags_t;
-int gnutls_x509_privkey_import(gnutls_x509_privkey_t key, const gnutls_datum_t * data,
- gnutls_x509_crt_fmt_t format);
-ASN1_TYPE _gnutls_privkey_decode_pkcs1_rsa_key( const gnutls_datum_t *raw_key,
- gnutls_x509_privkey_t pkey);
-int gnutls_x509_privkey_cpy(gnutls_x509_privkey_t dst, gnutls_x509_privkey_t src);
+int gnutls_x509_privkey_import(gnutls_x509_privkey_t key,
+ const gnutls_datum_t * data,
+ gnutls_x509_crt_fmt_t format);
+ASN1_TYPE _gnutls_privkey_decode_pkcs1_rsa_key(const gnutls_datum_t *
+ raw_key,
+ gnutls_x509_privkey_t pkey);
+int gnutls_x509_privkey_cpy(gnutls_x509_privkey_t dst,
+ gnutls_x509_privkey_t src);