summaryrefslogtreecommitdiff
path: root/pith/smkeys.h
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-02-28 14:12:49 -0700
committerEduardo Chappa <chappa@washington.edu>2016-02-28 14:12:49 -0700
commit4bf825141cd564a2c5a23c55f79e04665c428641 (patch)
tree4fd033202e91d414985f4896fe63b0039adc2cf2 /pith/smkeys.h
parentdc1062254da60a0f2bf8d52e861dbf4fb7b8cab9 (diff)
downloadalpine-4bf825141cd564a2c5a23c55f79e04665c428641.tar.xz
* Add the ability to change the private key and certificates used
to encrypt a password file in the SMIME setup configuration screen.
Diffstat (limited to 'pith/smkeys.h')
-rw-r--r--pith/smkeys.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pith/smkeys.h b/pith/smkeys.h
index 0a2b0065..8c23d905 100644
--- a/pith/smkeys.h
+++ b/pith/smkeys.h
@@ -38,7 +38,8 @@
typedef struct personal_cert {
X509 *cert;
EVP_PKEY *key;
- char *name;
+ char *name; /* name of key */
+ char *cname; /* name of cert */
char *keytext;
struct personal_cert *next;
} PERSONAL_CERT;
@@ -67,6 +68,7 @@ char *smime_get_date(ASN1_GENERALIZEDTIME *tm);
void resort_certificates(CertList **data, WhichCerts ctype);
int setup_certs_backup_by_type(WhichCerts ctype);
char *smime_get_cn(X509_NAME *);
+CertList *smime_X509_to_cert_info(X509 *, char *);
#endif /* PITH_SMKEYS_INCLUDED */