Skip to content

crypto/tls: Dial doesn't allow a non-default tls.Config to be used. #1248

Description

@fluffle
Which revision are you using?  (hg identify)
$ hg identify
be428b51bf77+ tip

Please provide any additional information below.
http://golang.org/cl/2883041

The above patch will cause API breakage, but was the simplest implementation. I note
that Listen and NewListener both take *Config args.

This is useful for e.g. allowing clients to select non-default CA cert paths (or turn
off CA verification altogether) without having to re-implement most of tls.Dial()
themselves.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions