Skip to content

Commit 94504aa

Browse files
authored
openssh: fix PKCS#11 key enumeration and pin entry (#466079)
2 parents 1524bd6 + b8d7d97 commit 94504aa

2 files changed

Lines changed: 27 additions & 52 deletions

File tree

pkgs/tools/networking/openssh/common.nix

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,35 @@ stdenv.mkDerivation (finalAttrs: {
6767
# See discussion in https://github.com/NixOS/nixpkgs/pull/16966
6868
./dont_create_privsep_path.patch
6969

70+
# See discussion in https://github.com/NixOS/nixpkgs/issues/466049 and
71+
# https://gitlab.archlinux.org/archlinux/packaging/packages/openssh/-/issues/23
72+
(fetchpatch {
73+
name = "pkcs11-fetchkey-error-to-debug.patch";
74+
url = "https://github.com/openssh/openssh-portable/commit/607f337637f2077b34a9f6f96fc24237255fe175.patch";
75+
hunks = [ "2-" ];
76+
hash = "sha256-rdvKL6/rwrdhGKlcmdy6fxVgJgaaRsmngX0KkShXAhQ=";
77+
})
78+
(fetchpatch {
79+
name = "pkcs11-fix-pinentry.patch";
80+
url = "https://github.com/openssh/openssh-portable/commit/434ba7684054c0637ce8f2486aaacafe65d9b8aa.patch";
81+
# only applies to Makefile.in (which doesn't have a date header) so no hunks= needed
82+
hash = "sha256-3JQ3IJurngXclORrfC2Bx7xvmGA6w2nIh+eZ0zd0bLY=";
83+
})
84+
7085
# See discussion in https://github.com/NixOS/nixpkgs/issues/453782 and
7186
# https://github.com/openssh/openssh-portable/pull/602
72-
./fix_pkcs11_tests.patch
87+
(fetchpatch {
88+
name = "pkcs11-tests-allow-module-path.patch";
89+
url = "https://github.com/openssh/openssh-portable/commit/5e7c3f33b2693b668ecfbac84b85f2c0c84410c2.patch";
90+
hunks = [ "2-" ];
91+
hash = "sha256-mGpRGXurg8K9Wp8qoojG5MQ+3sZW2XKy2z0RDXLHaEc=";
92+
})
93+
(fetchpatch {
94+
name = "ssh-agent-tests-increase-timeout.patch";
95+
url = "https://github.com/openssh/openssh-portable/commit/1fdc3c61194819c16063dc430eeb84b81bf42dcf.patch";
96+
hunks = [ "2-" ];
97+
hash = "sha256-b9YCOav32kY5VEvIG3W1fyD87HaQxof6Zwq9Oo+/Lac=";
98+
})
7399
]
74100
++ extraPatches;
75101

pkgs/tools/networking/openssh/fix_pkcs11_tests.patch

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)