run gofmt -s on main and server config

This commit is contained in:
Lucas Clemente
2016-05-15 14:42:56 +02:00
parent c12a12518e
commit de660dbfc5
2 changed files with 6 additions and 8 deletions

View File

@@ -71,11 +71,9 @@ func tlsConfigFromCertpath(certpath string) (*tls.Config, error) {
return nil, err return nil, err
} }
return &tls.Config{ return &tls.Config{
Certificates: []tls.Certificate{ Certificates: []tls.Certificate{{
tls.Certificate{ Certificate: [][]byte{certDer},
Certificate: [][]byte{certDer}, PrivateKey: key,
PrivateKey: key, }},
},
},
}, nil }, nil
} }

View File

@@ -37,8 +37,8 @@ func (s *ServerConfig) Get() []byte {
TagKEXS: []byte("C255"), TagKEXS: []byte("C255"),
TagAEAD: []byte("CC20"), TagAEAD: []byte("CC20"),
TagPUBS: append([]byte{0x20, 0x00, 0x00}, s.kex.PublicKey()...), TagPUBS: append([]byte{0x20, 0x00, 0x00}, s.kex.PublicKey()...),
TagOBIT: []byte{0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7}, TagOBIT: {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7},
TagEXPY: []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, TagEXPY: {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
TagVER: []byte("Q032"), TagVER: []byte("Q032"),
}) })
return serverConfig.Bytes() return serverConfig.Bytes()