Browse Source

Document CertPath and KeyPath as now-optional

Maciek Sakrejda 10 years ago
parent
commit
af396da0a6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      conn.go

+ 3 - 0
conn.go

@@ -55,6 +55,9 @@ func (p PasswordAuthenticator) Success(data []byte) error {
 }
 }
 
 
 type SslOptions struct {
 type SslOptions struct {
+	// CertPath and KeyPath are optional depending on server
+	// config, but both fields must be omitted to avoid using a
+	// client certificate
 	CertPath string
 	CertPath string
 	KeyPath  string
 	KeyPath  string
 	CaPath   string //optional depending on server config
 	CaPath   string //optional depending on server config