go.crypto: use golang.org/x/... import paths
LGTM=bradfitz R=rsc, bradfitz CC=golang-codereviews https://golang.org/cl/167190043
This commit is contained in:
+1
-1
@@ -8,11 +8,11 @@ package bcrypt
|
|||||||
|
|
||||||
// The code is a port of Provos and Mazières's C implementation.
|
// The code is a port of Provos and Mazières's C implementation.
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/blowfish"
|
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"crypto/subtle"
|
"crypto/subtle"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"golang.org/x/crypto/blowfish"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ package hkdf_test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/hkdf"
|
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"golang.org/x/crypto/hkdf"
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -18,9 +18,9 @@ This package is interoperable with NaCl: http://nacl.cr.yp.to/box.html.
|
|||||||
package box
|
package box
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/curve25519"
|
"golang.org/x/crypto/curve25519"
|
||||||
"code.google.com/p/go.crypto/nacl/secretbox"
|
"golang.org/x/crypto/nacl/secretbox"
|
||||||
"code.google.com/p/go.crypto/salsa20/salsa"
|
"golang.org/x/crypto/salsa20/salsa"
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/curve25519"
|
"golang.org/x/crypto/curve25519"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSealOpen(t *testing.T) {
|
func TestSealOpen(t *testing.T) {
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ This package is interoperable with NaCl: http://nacl.cr.yp.to/secretbox.html.
|
|||||||
package secretbox
|
package secretbox
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/poly1305"
|
"golang.org/x/crypto/poly1305"
|
||||||
"code.google.com/p/go.crypto/salsa20/salsa"
|
"golang.org/x/crypto/salsa20/salsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Overhead is the number of bytes of overhead when boxing a message.
|
// Overhead is the number of bytes of overhead when boxing a message.
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ package armor
|
|||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ import (
|
|||||||
"net/textproto"
|
"net/textproto"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/armor"
|
"golang.org/x/crypto/openpgp/armor"
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"code.google.com/p/go.crypto/openpgp/packet"
|
"golang.org/x/crypto/openpgp/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
// A Block represents a clearsigned message. A signature on a Block can
|
// A Block represents a clearsigned message. A signature on a Block can
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package clearsign
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp"
|
"golang.org/x/crypto/openpgp"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -5,10 +5,10 @@
|
|||||||
package openpgp
|
package openpgp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/armor"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/packet"
|
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
|
"golang.org/x/crypto/openpgp/armor"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
|
"golang.org/x/crypto/openpgp/packet"
|
||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/packet"
|
"golang.org/x/crypto/openpgp/packet"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestKeyExpiry(t *testing.T) {
|
func TestKeyExpiry(t *testing.T) {
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
package packet
|
package packet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"compress/bzip2"
|
"compress/bzip2"
|
||||||
"compress/flate"
|
"compress/flate"
|
||||||
"compress/zlib"
|
"compress/zlib"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
package packet
|
package packet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/elgamal"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"golang.org/x/crypto/openpgp/elgamal"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
package packet
|
package packet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/s2k"
|
|
||||||
"crypto"
|
"crypto"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
|
"golang.org/x/crypto/openpgp/s2k"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package packet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ package packet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"code.google.com/p/go.crypto/cast5"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"crypto/aes"
|
"crypto/aes"
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/des"
|
"crypto/des"
|
||||||
|
"golang.org/x/crypto/cast5"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ package packet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ package packet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/elgamal"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/s2k"
|
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/dsa"
|
"crypto/dsa"
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"crypto/sha1"
|
"crypto/sha1"
|
||||||
|
"golang.org/x/crypto/openpgp/elgamal"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
|
"golang.org/x/crypto/openpgp/s2k"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ package packet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/elgamal"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"crypto"
|
"crypto"
|
||||||
"crypto/dsa"
|
"crypto/dsa"
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
@@ -18,6 +16,8 @@ import (
|
|||||||
_ "crypto/sha512"
|
_ "crypto/sha512"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"golang.org/x/crypto/openpgp/elgamal"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PublicKeyV3 represents older, version 3 public keys. These keys are less secure and
|
// PublicKeyV3 represents older, version 3 public keys. These keys are less secure and
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
package packet
|
package packet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
package packet
|
package packet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/s2k"
|
|
||||||
"crypto"
|
"crypto"
|
||||||
"crypto/dsa"
|
"crypto/dsa"
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
|
"golang.org/x/crypto/openpgp/s2k"
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"code.google.com/p/go.crypto/openpgp/s2k"
|
"golang.org/x/crypto/openpgp/s2k"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SignatureV3 represents older version 3 signatures. These signatures are less secure
|
// SignatureV3 represents older version 3 signatures. These signatures are less secure
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/armor"
|
"golang.org/x/crypto/openpgp/armor"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSignatureV3Read(t *testing.T) {
|
func TestSignatureV3Read(t *testing.T) {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"code.google.com/p/go.crypto/openpgp/s2k"
|
"golang.org/x/crypto/openpgp/s2k"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is the largest session key that we'll support. Since no 512-bit cipher
|
// This is the largest session key that we'll support. Since no 512-bit cipher
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
package packet
|
package packet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"crypto/cipher"
|
"crypto/cipher"
|
||||||
"crypto/sha1"
|
"crypto/sha1"
|
||||||
"crypto/subtle"
|
"crypto/subtle"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ package packet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"crypto/sha1"
|
"crypto/sha1"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
+3
-3
@@ -6,11 +6,11 @@
|
|||||||
package openpgp
|
package openpgp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/armor"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/packet"
|
|
||||||
"crypto"
|
"crypto"
|
||||||
_ "crypto/sha256"
|
_ "crypto/sha256"
|
||||||
|
"golang.org/x/crypto/openpgp/armor"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
|
"golang.org/x/crypto/openpgp/packet"
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ package openpgp
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
_ "crypto/sha512"
|
_ "crypto/sha512"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config collects configuration parameters for s2k key-stretching
|
// Config collects configuration parameters for s2k key-stretching
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
_ "code.google.com/p/go.crypto/ripemd160"
|
_ "golang.org/x/crypto/ripemd160"
|
||||||
)
|
)
|
||||||
|
|
||||||
var saltedTests = []struct {
|
var saltedTests = []struct {
|
||||||
|
|||||||
+4
-4
@@ -5,11 +5,11 @@
|
|||||||
package openpgp
|
package openpgp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/openpgp/armor"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/errors"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/packet"
|
|
||||||
"code.google.com/p/go.crypto/openpgp/s2k"
|
|
||||||
"crypto"
|
"crypto"
|
||||||
|
"golang.org/x/crypto/openpgp/armor"
|
||||||
|
"golang.org/x/crypto/openpgp/errors"
|
||||||
|
"golang.org/x/crypto/openpgp/packet"
|
||||||
|
"golang.org/x/crypto/openpgp/s2k"
|
||||||
"hash"
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ package salsa20
|
|||||||
// TODO(agl): implement XORKeyStream12 and XORKeyStream8 - the reduced round variants of Salsa20.
|
// TODO(agl): implement XORKeyStream12 and XORKeyStream8 - the reduced round variants of Salsa20.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/go.crypto/salsa20/salsa"
|
"golang.org/x/crypto/salsa20/salsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
// XORKeyStream crypts bytes from in to out using the given key and nonce. In
|
// XORKeyStream crypts bytes from in to out using the given key and nonce. In
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/pbkdf2"
|
"golang.org/x/crypto/pbkdf2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const maxInt = int(^uint(0) >> 1)
|
const maxInt = int(^uint(0) >> 1)
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ import (
|
|||||||
"math/big"
|
"math/big"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Agent represents the capabilities of an ssh-agent.
|
// Agent represents the capabilities of an ssh-agent.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// startAgent executes ssh-agent, and returns a Agent interface to it.
|
// startAgent executes ssh-agent, and returns a Agent interface to it.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RequestAgentForwarding sets up agent forwarding for the session.
|
// RequestAgentForwarding sets up agent forwarding for the session.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
type privKey struct {
|
type privKey struct {
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server wraps an Agent and uses it to implement the agent side of
|
// Server wraps an Agent and uses it to implement the agent side of
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package agent
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServer(t *testing.T) {
|
func TestServer(t *testing.T) {
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
"code.google.com/p/go.crypto/ssh/testdata"
|
"golang.org/x/crypto/ssh/testdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleNewServerConn() {
|
func ExampleNewServerConn() {
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh/testdata"
|
"golang.org/x/crypto/ssh/testdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
func rawKey(pub PublicKey) interface{} {
|
func rawKey(pub PublicKey) interface{} {
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
type serverType func(Channel, <-chan *Request, *testing.T)
|
type serverType func(Channel, <-chan *Request, *testing.T)
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
"code.google.com/p/go.crypto/ssh/agent"
|
"golang.org/x/crypto/ssh/agent"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAgentForward(t *testing.T) {
|
func TestAgentForward(t *testing.T) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCertLogin(t *testing.T) {
|
func TestCertLogin(t *testing.T) {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ package test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"code.google.com/p/go.crypto/ssh"
|
|
||||||
"errors"
|
"errors"
|
||||||
|
"golang.org/x/crypto/ssh"
|
||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
"code.google.com/p/go.crypto/ssh/testdata"
|
"golang.org/x/crypto/ssh/testdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sshd_config = `
|
const sshd_config = `
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
"code.google.com/p/go.crypto/ssh/testdata"
|
"golang.org/x/crypto/ssh/testdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh/testdata"
|
"golang.org/x/crypto/ssh/testdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in New Issue
Block a user