diff options
author | Eduardo Chappa <chappa@washington.edu> | 2018-01-21 16:52:48 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2018-01-21 16:52:48 -0700 |
commit | fc082d271bd30310ce6928ed4341e11c36ba8ddb (patch) | |
tree | 79f6028bdb6774d149496fc5558457a4f10004cf /alpine/imap.c | |
parent | 3addcb6e705b320dcaf8c6d974039719e40daa24 (diff) | |
download | alpine-fc082d271bd30310ce6928ed4341e11c36ba8ddb.tar.xz |
* If the directory where Alpine saves the certificates if empty,
alpine would not create a self-signed certificate to encrypt the
password file. Reported in comp.mail.pine by mechanic.
Diffstat (limited to 'alpine/imap.c')
-rw-r--r-- | alpine/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alpine/imap.c b/alpine/imap.c index 495743e3..c5a79130 100644 --- a/alpine/imap.c +++ b/alpine/imap.c @@ -2636,7 +2636,7 @@ write_passfile(pinerc, l) if(ps_global->pwdcert == NULL){ q_status_message(SM_ORDER, 3, 3, "Attempting to encrypt password file"); i = setup_pwdcert(&ps_global->pwdcert); - if(i == 0 && ps_global->pwdcert == NULL) + if((i == 0 || i == -5) && ps_global->pwdcert == NULL) ps_global->pwdcert = (void *) ALPINE_self_signed_certificate(NULL, 0, ps_global->pwdcertdir, MASTERNAME); } if(ps_global->pwdcert == NULL){ /* we tried but failed */ |