aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 5de1bb8cc32d1fc6cd6aeadc55549d9efc7e306e
parent a9aebe11d7801d0e574dc7b69de6c798d5c0e1f0
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 20 May 2019 14:03:00 -0400

Verify TLS certificates

I was partway done implementing a UI for users to approve untrusted
certs with, but let's just make them configure their servers right
instead.

Diffstat:
Mwidgets/account.go | 8+-------
Mworker/types/messages.go | 11-----------
2 files changed, 1 insertion(+), 18 deletions(-)

diff --git a/widgets/account.go b/widgets/account.go @@ -123,7 +123,7 @@ func (acct *AccountView) Focus(focus bool) { } func (acct *AccountView) connected(msg types.WorkerMessage) { - switch msg := msg.(type) { + switch msg.(type) { case *types.Done: acct.host.SetStatus("Listing mailboxes...") acct.logger.Println("Listing mailboxes...") @@ -142,12 +142,6 @@ func (acct *AccountView) connected(msg types.WorkerMessage) { acct.logger.Println("Connected.") acct.host.SetStatus("Connected.") }) - case *types.CertificateApprovalRequest: - // TODO: Ask the user - acct.worker.PostAction(&types.ApproveCertificate{ - Message: types.RespondTo(msg), - Approved: true, - }, acct.connected) } } diff --git a/worker/types/messages.go b/worker/types/messages.go @@ -1,7 +1,6 @@ package types import ( - "crypto/x509" "io" "time" @@ -56,11 +55,6 @@ type Unsupported struct { // Actions -type ApproveCertificate struct { - Message - Approved bool -} - type Configure struct { Message Config *config.AccountConfig @@ -125,11 +119,6 @@ type AppendMessage struct { // Messages -type CertificateApprovalRequest struct { - Message - CertPool *x509.CertPool -} - type Directory struct { Message Attributes []string