diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-09-06 21:11:17 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-09-06 21:11:17 -0600 |
commit | bf714e42e10de6ff6bce677551c791397048caa5 (patch) | |
tree | 3b18d9543603a9516b896ddafd4d5bf66f9e17bd /pith | |
parent | 6d27dc65831f3ae77ec77a0ce0e904c8824e17c0 (diff) | |
download | alpine-bf714e42e10de6ff6bce677551c791397048caa5.tar.xz |
* S/MIME: information on certificates is now available for certificates
in containers.
Diffstat (limited to 'pith')
-rw-r--r-- | pith/pine.hlp | 2 | ||||
-rw-r--r-- | pith/smkeys.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pith/pine.hlp b/pith/pine.hlp index 4201eb9c..2e038ae6 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 94 2015-09-06 16:11:41 +Alpine Commit 95 2015-09-06 21:11:08 ============= h_news ================= <HTML> <HEAD> diff --git a/pith/smkeys.c b/pith/smkeys.c index bb77b030..7e992a53 100644 --- a/pith/smkeys.c +++ b/pith/smkeys.c @@ -1249,6 +1249,7 @@ void add_to_end_of_certlist(CertList **cl, char *name, X509 *cert) { CertList *new, *clp; + char buf[MAILTMPLEN]; if(!cl) return; @@ -1257,6 +1258,12 @@ add_to_end_of_certlist(CertList **cl, char *name, X509 *cert) memset((void *) new, 0, sizeof(*new)); new->x509_cert = cert; new->name = name ? cpystr(name) : NULL; + if(cert && cert->cert_info){ + new->data.date_from = smime_get_date(cert->cert_info->validity->notBefore); + new->data.date_to = smime_get_date(cert->cert_info->validity->notAfter); + get_fingerprint(cert, EVP_md5(), buf, sizeof(buf), NULL); + new->data.md5 = cpystr(buf); + } if(!*cl){ *cl = new; |