@@ -165,9 +165,9 @@ func testAgentInterface(t *testing.T, agent ExtendedAgent, key interface{}, cert
165
165
sig , err := agent .Sign (pubKey , data )
166
166
if err != nil {
167
167
t .Logf ("sign failed with key type %q" , pubKey .Type ())
168
- // In integration tests ssh-dss and ssh- rsa (SHA1 signatures) may be
169
- // disabled for security reasons, we check SHA-2 variants later.
170
- if pubKey .Type () != ssh .KeyAlgoDSA && pubKey . Type () != ssh . KeyAlgoRSA && pubKey .Type () != ssh .CertAlgoRSAv01 {
168
+ // In integration tests ssh-rsa (SHA1 signatures) may be disabled for
169
+ // security reasons, we check SHA-2 variants later.
170
+ if pubKey .Type () != ssh .KeyAlgoRSA && pubKey .Type () != ssh .CertAlgoRSAv01 {
171
171
t .Fatalf ("Sign(%s): %v" , pubKey .Type (), err )
172
172
}
173
173
} else {
@@ -251,7 +251,7 @@ func TestMalformedRequests(t *testing.T) {
251
251
}
252
252
253
253
func TestAgent (t * testing.T ) {
254
- for _ , keyType := range []string {"rsa" , "dsa" , " ecdsa" , "ed25519" } {
254
+ for _ , keyType := range []string {"rsa" , "ecdsa" , "ed25519" } {
255
255
testOpenSSHAgent (t , testPrivateKeys [keyType ], nil , 0 )
256
256
testKeyringAgent (t , testPrivateKeys [keyType ], nil , 0 )
257
257
}
@@ -409,7 +409,7 @@ func testLockAgent(agent Agent, t *testing.T) {
409
409
if err := agent .Add (AddedKey {PrivateKey : testPrivateKeys ["rsa" ], Comment : "comment 1" }); err != nil {
410
410
t .Errorf ("Add: %v" , err )
411
411
}
412
- if err := agent .Add (AddedKey {PrivateKey : testPrivateKeys ["dsa " ], Comment : "comment dsa " }); err != nil {
412
+ if err := agent .Add (AddedKey {PrivateKey : testPrivateKeys ["ecdsa " ], Comment : "comment ecdsa " }); err != nil {
413
413
t .Errorf ("Add: %v" , err )
414
414
}
415
415
if keys , err := agent .List (); err != nil {
0 commit comments