mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
update vendor & fix upload file url & fix judge file type
This commit is contained in:
1
vendor/golang.org/x/crypto/ssh/test/banner_test.go
generated
vendored
1
vendor/golang.org/x/crypto/ssh/test/banner_test.go
generated
vendored
@@ -8,7 +8,6 @@ package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
)
|
||||
|
||||
func TestBannerCallbackAgainstOpenSSH(t *testing.T) {
|
||||
|
||||
2
vendor/golang.org/x/crypto/ssh/test/doc.go
generated
vendored
2
vendor/golang.org/x/crypto/ssh/test/doc.go
generated
vendored
@@ -2,6 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// This package contains integration tests for the
|
||||
// Package test contains integration tests for the
|
||||
// golang.org/x/crypto/ssh package.
|
||||
package test // import "golang.org/x/crypto/ssh/test"
|
||||
|
||||
6
vendor/golang.org/x/crypto/ssh/test/test_unix_test.go
generated
vendored
6
vendor/golang.org/x/crypto/ssh/test/test_unix_test.go
generated
vendored
@@ -25,7 +25,7 @@ import (
|
||||
"golang.org/x/crypto/ssh/testdata"
|
||||
)
|
||||
|
||||
const sshd_config = `
|
||||
const sshdConfig = `
|
||||
Protocol 2
|
||||
Banner {{.Dir}}/banner
|
||||
HostKey {{.Dir}}/id_rsa
|
||||
@@ -51,7 +51,7 @@ HostbasedAuthentication no
|
||||
PubkeyAcceptedKeyTypes=*
|
||||
`
|
||||
|
||||
var configTmpl = template.Must(template.New("").Parse(sshd_config))
|
||||
var configTmpl = template.Must(template.New("").Parse(sshdConfig))
|
||||
|
||||
type server struct {
|
||||
t *testing.T
|
||||
@@ -271,7 +271,7 @@ func newServer(t *testing.T) *server {
|
||||
}
|
||||
|
||||
var authkeys bytes.Buffer
|
||||
for k, _ := range testdata.PEMBytes {
|
||||
for k := range testdata.PEMBytes {
|
||||
authkeys.Write(ssh.MarshalAuthorizedKey(testPublicKeys[k]))
|
||||
}
|
||||
writeFile(filepath.Join(dir, "authorized_keys"), authkeys.Bytes())
|
||||
|
||||
Reference in New Issue
Block a user