-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c01b41a
commit f1ffb93
Showing
4 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Index: nss/lib/pk11wrap/pk11skey.c | ||
=================================================================== | ||
--- nss.orig/lib/pk11wrap/pk11skey.c | ||
+++ nss/lib/pk11wrap/pk11skey.c | ||
@@ -520,6 +520,14 @@ PK11_ImportDataKey(PK11SlotInfo *slot, C | ||
CK_OBJECT_HANDLE handle; | ||
PK11GenericObject *genObject; | ||
|
||
+ // Using HTTP3, Firefox runs via neqo that doesn't log in before calling into | ||
+ // this function. So we try to log in here (and ignore failures) in case of FIPS. | ||
+ // Also, no need to also load certificates, we only create a new object and we | ||
+ // have to be logged in for that. | ||
+ if (PK11_IsFIPS()) { | ||
+ PK11_Authenticate(slot, PR_FALSE, wincx); | ||
+ } | ||
+ | ||
genObject = PK11_CreateGenericObject(slot, template, PR_ARRAY_SIZE(template), PR_FALSE); | ||
if (genObject == NULL) { | ||
return NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters