9ab66e765c
- update to NSS 3.102.1 OBS-URL: https://build.opensuse.org/request/show/1191192 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nss?expand=0&rev=453
20 lines
826 B
Diff
20 lines
826 B
Diff
Index: nss/lib/pk11wrap/pk11skey.c
|
|
===================================================================
|
|
--- nss.orig/lib/pk11wrap/pk11skey.c
|
|
+++ nss/lib/pk11wrap/pk11skey.c
|
|
@@ -521,6 +521,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;
|