Skip to content

Commit 20df85e

Browse files
committed
fixup! crypto: support loading private keys through STORE loaders
1 parent 4298a1d commit 20df85e

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/nix-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
++ builtins.attrValues (
7070
{ inherit (import <nixpkgs> {}) nixfmt-tree sccache; }
7171
// import ./tools/nix/openssl-matrix.nix {}
72-
// builtins.removeAttrs (import ./tools/nix/pkcs11.nix {}) [ \"pin\" ]
72+
// import ./tools/nix/pkcs11.nix {}
7373
)")" \
7474
| xargs nix-store --realise \
7575
| xargs nix-store --query --requisites \
@@ -78,6 +78,7 @@ jobs:
7878
7979
- name: Compute requisites before change
8080
shell: bash # See https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference, we want the pipefail option.
81+
# TODO(panva): add `// import ./tools/nix/pkcs11.nix {}` once landed
8182
run: |
8283
git reset HEAD^ --hard
8384
nix-store --query --references "$(
@@ -87,7 +88,6 @@ jobs:
8788
++ builtins.attrValues (
8889
{ inherit (import <nixpkgs> {}) nixfmt-tree sccache; }
8990
// import ./tools/nix/openssl-matrix.nix {}
90-
// builtins.removeAttrs (import ./tools/nix/pkcs11.nix {}) [ \"pin\" ]
9191
)")" \
9292
| xargs nix-store --realise \
9393
| xargs nix-store --query --requisites \

shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pkgs.mkShell (
154154
}
155155
// pkgs.lib.optionalAttrs usePkcs11 {
156156
NODE_TEST_PKCS11_OPENSSL_CONF = "${pkcs11Fixture.opensslConf}";
157-
NODE_TEST_PKCS11_PIN = pkcs11Fixture.pin;
157+
NODE_TEST_PKCS11_PIN = pkcs11Fixture.softhsmDir.pin;
158158
NODE_TEST_PKCS11_SOFTHSM_DIR = "${pkcs11Fixture.softhsmDir}";
159159
}
160160
)

tools/nix/pkcs11.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ let
5252
in
5353
{
5454
inherit
55-
pin
5655
pkcs11-provider
5756
softhsm
5857
;
@@ -90,6 +89,10 @@ in
9089
softhsm
9190
pkgs.opensc
9291
];
92+
93+
passthru = {
94+
inherit pin;
95+
};
9396
}
9497
''
9598
export SOFTHSM2_CONF=${softhsmConf}

0 commit comments

Comments
 (0)