diff options
| author | adnano <[email protected]> | 2020-10-13 16:44:46 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-10-13 16:44:46 -0400 |
| commit | 3d1e9e5519196012157c571c7a861e8a891b218f (patch) | |
| tree | 3d7d1e52121b190f6bfe56d7d648d503d449558d /examples/client.go | |
| parent | examples/server: Generate new certificates when they expire (diff) | |
| download | go-gemini-3d1e9e5519196012157c571c7a861e8a891b218f.tar.xz go-gemini-3d1e9e5519196012157c571c7a861e8a891b218f.zip | |
Move certificate verification code to VerifyConnection
Diffstat (limited to 'examples/client.go')
| -rw-r--r-- | examples/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.go b/examples/client.go index edea321..8d818c3 100644 --- a/examples/client.go +++ b/examples/client.go @@ -29,7 +29,7 @@ func init() { // Alert the user that the certificate is not trusted fmt.Printf("Warning: Certificate for %s is not trusted!\n", hostname) fmt.Println("This could indicate a Man-in-the-Middle attack.") - case gmi.ErrUnknownCertificate: + case gmi.ErrCertificateUnknown: // Prompt the user to trust the certificate trust := trustCertificate(cert) switch trust { |