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.
This commit is contained in:
Drew DeVault 2019-05-20 14:03:00 -04:00
parent a9aebe11d7
commit 5de1bb8cc3
2 changed files with 1 additions and 18 deletions

View File

@ -123,7 +123,7 @@ func (acct *AccountView) Focus(focus bool) {
} }
func (acct *AccountView) connected(msg types.WorkerMessage) { func (acct *AccountView) connected(msg types.WorkerMessage) {
switch msg := msg.(type) { switch msg.(type) {
case *types.Done: case *types.Done:
acct.host.SetStatus("Listing mailboxes...") acct.host.SetStatus("Listing mailboxes...")
acct.logger.Println("Listing mailboxes...") acct.logger.Println("Listing mailboxes...")
@ -142,12 +142,6 @@ func (acct *AccountView) connected(msg types.WorkerMessage) {
acct.logger.Println("Connected.") acct.logger.Println("Connected.")
acct.host.SetStatus("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)
} }
} }

View File

@ -1,7 +1,6 @@
package types package types
import ( import (
"crypto/x509"
"io" "io"
"time" "time"
@ -56,11 +55,6 @@ type Unsupported struct {
// Actions // Actions
type ApproveCertificate struct {
Message
Approved bool
}
type Configure struct { type Configure struct {
Message Message
Config *config.AccountConfig Config *config.AccountConfig
@ -125,11 +119,6 @@ type AppendMessage struct {
// Messages // Messages
type CertificateApprovalRequest struct {
Message
CertPool *x509.CertPool
}
type Directory struct { type Directory struct {
Message Message
Attributes []string Attributes []string