Merge fixes

This commit is contained in:
crschnick
2026-04-22 17:50:29 +00:00
parent c98fc955b5
commit da8ca7bce5

View File

@@ -105,10 +105,10 @@ public class SecurityKeyStrategy implements SshIdentityKeyListStrategy {
var file = securityKey.determineLibraryPath(sc);
var key = SshIdentityStrategy.getPublicKeyPath(sc, publicKey);
return List.of(
new KeyValue("PKCS11Provider", "\"" + file.toString() + "\""),
new KeyValue("IdentitiesOnly", key.isPresent() ? "yes" : "no"),
new KeyValue("IdentityFile", key.isPresent() ? key.get().toString() : "none"),
new KeyValue("IdentityAgent", "none"));
KeyValue.escape("PKCS11Provider", file.toString()),
KeyValue.raw("IdentitiesOnly", key.isPresent() ? "yes" : "no"),
KeyValue.escape("IdentityFile", key.isPresent() ? key.get().toString() : "none"),
KeyValue.raw("IdentityAgent", "none"));
}
@Override