aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-20 14:03:00 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-20 14:03:00 -0400
commit5de1bb8cc32d1fc6cd6aeadc55549d9efc7e306e (patch)
tree820386f29a8b54a71f56ef5fbe32ebc172e3fe3e /widgets
parenta9aebe11d7801d0e574dc7b69de6c798d5c0e1f0 (diff)
downloadaerc-5de1bb8cc32d1fc6cd6aeadc55549d9efc7e306e.tar.gz
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 (limited to 'widgets')
-rw-r--r--widgets/account.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 431e7b85..4ccb43d1 100644
--- 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)
}
}