Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/docker/notary into cyc_ro…
Browse files Browse the repository at this point in the history
…otcert

Signed-off-by: Yuechuan Chen <yuechuan.chen@motorolasolutions.com>
  • Loading branch information
Yuechuan Chen committed May 25, 2017
1 parent e2cbaff commit 88710b5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.7.3
FROM golang:1.8.1

RUN apt-get update && apt-get install -y \
curl \
Expand Down
4 changes: 1 addition & 3 deletions cmd/notary/tuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import (
"strings"
"time"

"golang.org/x/crypto/ssh/terminal"

"github.com/Sirupsen/logrus"
"github.com/docker/distribution/registry/client/auth"
"github.com/docker/distribution/registry/client/auth/challenge"
Expand Down Expand Up @@ -863,7 +861,7 @@ type passwordStore struct {

func (ps passwordStore) Basic(u *url.URL) (string, string) {
// if it's not a terminal, don't wait on input
if ps.anonymous || !terminal.IsTerminal(int(os.Stdin.Fd())) {
if ps.anonymous {
return "", ""
}

Expand Down
2 changes: 1 addition & 1 deletion cross.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.7.3
FROM golang:1.8.1

RUN apt-get update && apt-get install -y \
curl \
Expand Down
2 changes: 1 addition & 1 deletion server.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.7.3-alpine
FROM golang:1.8.1-alpine
MAINTAINER David Lawrence "david.lawrence@docker.com"

RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*
Expand Down
2 changes: 1 addition & 1 deletion signer.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.7.3-alpine
FROM golang:1.8.1-alpine
MAINTAINER David Lawrence "david.lawrence@docker.com"

RUN apk add --update git gcc libc-dev && rm -rf /var/cache/apk/*
Expand Down
2 changes: 1 addition & 1 deletion tuf/signed/sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func TestSignReturnsNoSigs(t *testing.T) {
}

func TestSignWithX509(t *testing.T) {
// generate a key becase we need a cert
// generate a key because we need a cert
privKey, err := utils.GenerateRSAKey(rand.Reader, 1024)
require.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion tuf/signed/verifiers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestRSAPSSVerifierWithInvalidKeyType(t *testing.T) {
}

func TestRSAPSSVerifierWithInvalidKeyLength(t *testing.T) {
key, err := rsa.GenerateKey(rand.Reader, 512)
key, err := rsa.GenerateKey(rand.Reader, 1024)
require.NoError(t, err)

err = verifyPSS(key.Public(), nil, nil)
Expand Down
2 changes: 1 addition & 1 deletion tuf/utils/x509_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestKeyOperations(t *testing.T) {
require.NoError(t, err)

// Generate our RSA private key
rsaKey, err := GenerateRSAKey(rand.Reader, 512)
rsaKey, err := GenerateRSAKey(rand.Reader, 2048)
require.NoError(t, err)

// Encode our ED private key
Expand Down

0 comments on commit 88710b5

Please sign in to comment.