diff options
author | Lucas Fisher <lucas.fisher@gmail.com> | 2012-06-23 17:50:52 -0400 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-06-24 20:22:53 +0200 |
commit | 451680971317d571b6df8eb284b45655a445a83b (patch) | |
tree | 29b71718e91ba436cec5b5ae9c3d1747d34b4496 /src/certtool-common.h | |
parent | 4fcc3470021eebb9faa5955963907d7ec112def7 (diff) | |
download | gnutls-451680971317d571b6df8eb284b45655a445a83b.tar.gz |
Certtool exports multiple keys in PKCS12 file
Update certtool to export multiple keys in a PKCS12 file so multiple
certificate/key pairs may be included in one file.
- Add load_privkey_list() so that --load-privkey loads multiple keys
- Change generate_pkcs12() to add multiple keys to the PKCS12 file
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src/certtool-common.h')
-rw-r--r-- | src/certtool-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/certtool-common.h b/src/certtool-common.h index dbd69e5a09..96bec5bff7 100644 --- a/src/certtool-common.h +++ b/src/certtool-common.h @@ -55,6 +55,8 @@ typedef struct common_info gnutls_pubkey_t load_public_key_or_import(int mand, gnutls_privkey_t privkey, common_info_st * info); gnutls_privkey_t load_private_key (int mand, common_info_st * info); gnutls_x509_privkey_t load_x509_private_key (int mand, common_info_st * info); +gnutls_x509_privkey_t *load_privkey_list (int mand, size_t * privkey_size, + common_info_st * info); gnutls_x509_crq_t load_request (common_info_st * info); gnutls_privkey_t load_ca_private_key (common_info_st * info); gnutls_x509_crt_t load_ca_cert (common_info_st * info); |