Skip to content
Snippets Groups Projects
Commit 5fcb82c2 authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Update agent package

Added support for certificate lifetimes
parent 1fd3ac5d
No related branches found
No related tags found
No related merge requests found
......@@ -584,6 +584,7 @@ func (c *client) insertCert(s interface{}, cert *ssh.Certificate, comment string
CertBytes: cert.Marshal(),
X: k.X,
Comments: comment,
Constraints: constraints,
})
case *ecdsa.PrivateKey:
req = ssh.Marshal(ecdsaCertMsg{
......@@ -591,6 +592,7 @@ func (c *client) insertCert(s interface{}, cert *ssh.Certificate, comment string
CertBytes: cert.Marshal(),
D: k.D,
Comments: comment,
Constraints: constraints,
})
case ed25519.PrivateKey:
req = ssh.Marshal(ed25519CertMsg{
......@@ -599,6 +601,7 @@ func (c *client) insertCert(s interface{}, cert *ssh.Certificate, comment string
Pub: []byte(k)[32:],
Priv: []byte(k),
Comments: comment,
Constraints: constraints,
})
default:
return fmt.Errorf("agent: unsupported key type %T", s)
......
......@@ -204,10 +204,10 @@
"revisionTime": "2016-05-16T23:05:56Z"
},
{
"checksumSHA1": "SEz1b89e679TV/nkIHlu49H5wTM=",
"checksumSHA1": "EcKMEjHXZnW85PGnmiVGLknf8HU=",
"path": "golang.org/x/crypto/ssh/agent",
"revision": "5bcd134fee4dd1475da17714aac19c0aa0142e2f",
"revisionTime": "2016-05-16T23:05:56Z"
"revision": "89d9e62992539701a49a19c52ebb33e84cbbe80f",
"revisionTime": "2016-06-03T20:06:38Z"
},
{
"checksumSHA1": "9jjO5GjLa0XF/nfWihF02RoH4qc=",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment