mirror of
https://github.com/libp2p/go-openssl.git
synced 2024-12-25 23:30:06 +08:00
chore: go fmt
This commit is contained in:
parent
0250c31eb1
commit
32392545a8
12
ctx.go
12
ctx.go
@ -365,12 +365,12 @@ func (c *Ctx) LoadVerifyLocations(ca_file string, ca_path string) error {
|
||||
type Version int
|
||||
|
||||
const (
|
||||
SSL3_VERSION Version = C.SSL3_VERSION
|
||||
TLS1_VERSION Version = C.TLS1_VERSION
|
||||
TLS1_1_VERSION Version = C.TLS1_1_VERSION
|
||||
TLS1_2_VERSION Version = C.TLS1_2_VERSION
|
||||
TLS1_3_VERSION Version = C.TLS1_3_VERSION
|
||||
DTLS1_VERSION Version = C.DTLS1_VERSION
|
||||
SSL3_VERSION Version = C.SSL3_VERSION
|
||||
TLS1_VERSION Version = C.TLS1_VERSION
|
||||
TLS1_1_VERSION Version = C.TLS1_1_VERSION
|
||||
TLS1_2_VERSION Version = C.TLS1_2_VERSION
|
||||
TLS1_3_VERSION Version = C.TLS1_3_VERSION
|
||||
DTLS1_VERSION Version = C.DTLS1_VERSION
|
||||
DTLS1_2_VERSION Version = C.DTLS1_2_VERSION
|
||||
)
|
||||
|
||||
|
4
net.go
4
net.go
@ -89,7 +89,7 @@ func Dial(network, addr string, ctx *Ctx, flags DialFlags) (*Conn, error) {
|
||||
// parameters.
|
||||
func DialTimeout(network, addr string, timeout time.Duration, ctx *Ctx,
|
||||
flags DialFlags) (*Conn, error) {
|
||||
d := net.Dialer {Timeout: timeout}
|
||||
d := net.Dialer{Timeout: timeout}
|
||||
return dialSession(d, network, addr, ctx, flags, nil)
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ func DialTimeout(network, addr string, timeout time.Duration, ctx *Ctx,
|
||||
func DialSession(network, addr string, ctx *Ctx, flags DialFlags,
|
||||
session []byte) (*Conn, error) {
|
||||
var d net.Dialer
|
||||
return dialSession(d, network, addr, ctx, flags, session);
|
||||
return dialSession(d, network, addr, ctx, flags, session)
|
||||
}
|
||||
|
||||
func dialSession(d net.Dialer, network, addr string, ctx *Ctx, flags DialFlags,
|
||||
|
Loading…
Reference in New Issue
Block a user