From 01170cfd3d5b6e5dfdc11c75f6e6740e8f938109 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Wed, 18 Nov 2015 09:03:34 -0700 Subject: * New version 2.20.10. * Fix typos in documentation (cotainer to container.) Reported by Holger Trapp. * Alpine does not remove remporary files created when adding a CA certificate to a container. Reported by Holger Trapp. --- pith/pine.hlp | 7 +++++-- pith/smkeys.c | 12 ++++++------ po/Makefile.in | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/pith/pine.hlp b/pith/pine.hlp index fb60ae0b..64216fcb 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 111 2015-11-15 19:07:10 +Alpine Commit 112 2015-11-18 09:02:07 ============= h_news ================= @@ -203,7 +203,7 @@ Additions include: signed/decrypted add the ability to view its SMIME information.
  • SMIME: Certificate information in the S/MIME screen is available - for certificates stored in a cotainer. + for certificates stored in a container.
  • SMIME: Offer the common name of the person, instead of the name of file containing the certificate, as the name to be displayed in the @@ -317,6 +317,9 @@ Bugs that have been addressed include:
  • SMIME: Crash if public certificates are located in an inaccessible remote server and the private key is not available. +
  • SMIME: Alpine does not remove remporary files created when adding a + CA certificate to a container. Reported by Holger Trapp. +
  • Pico: Searching for a string that is too long causes Pico to crash in the next search. diff --git a/pith/smkeys.c b/pith/smkeys.c index 17357378..c5c24bcb 100644 --- a/pith/smkeys.c +++ b/pith/smkeys.c @@ -1205,11 +1205,8 @@ mem_add_extra_cacerts(char *contents, X509_LOOKUP *lookup) in = BIO_new_mem_buf(certtext, q-certtext); if(in){ tempfile = temp_nam(NULL, "az"); - out = NULL; - if(tempfile) - out = BIO_new_file(tempfile, "w"); - - if(out){ + out = tempfile != NULL ? BIO_new_file(tempfile, "w") : NULL; + if(out != NULL){ while((len = BIO_read(in, iobuf, sizeof(iobuf))) > 0) BIO_write(out, iobuf, len); @@ -1217,7 +1214,10 @@ mem_add_extra_cacerts(char *contents, X509_LOOKUP *lookup) if(!X509_LOOKUP_load_file(lookup, tempfile, X509_FILETYPE_PEM)) failed++; - fs_give((void **) &tempfile); + } + if(tempfile != NULL){ + unlink(tempfile); + fs_give((void **) &tempfile); } BIO_free(in); diff --git a/po/Makefile.in b/po/Makefile.in index 07cc6c64..d80f8801 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -11,7 +11,7 @@ # Origin: gettext-0.16 PACKAGE = alpine -VERSION = 2.20.9 +VERSION = 2.20.10 PACKAGE_BUGREPORT = chappa@washington.edu SHELL = /bin/sh -- cgit v1.2.3-70-g09d2