Blame SOURCES/nss-pkcs12-iterations-limit.patch

294c78
# HG changeset patch
294c78
# User J.C. Jones <jjones@mozilla.com>
294c78
# Date 1521824312 25200
294c78
#      Fri Mar 23 09:58:32 2018 -0700
294c78
# Branch NSS_3_36_BRANCH
294c78
# Node ID ba3f1cc8a8e644ee6f8a763624d97e987816304d
294c78
# Parent  2355c9e3bba477c947a09a2fe8b1ed8971fab1cb
294c78
Bug 1278071 - Limit iterations for PKCS #12 export for Windows r=kaie
294c78
294c78
Per Bug 1436873, Windows is limited on importing PKCS12 files of 600k rounds
294c78
or less. So for compatibility's sake, let's limit there, too.
294c78
294c78
diff --git a/lib/pkcs7/p7create.c b/lib/pkcs7/p7create.c
294c78
--- a/lib/pkcs7/p7create.c
294c78
+++ b/lib/pkcs7/p7create.c
294c78
@@ -22,7 +22,7 @@ const int NSS_PBE_DEFAULT_ITERATION_COUN
294c78
 #ifdef DEBUG
294c78
     10000
294c78
 #else
294c78
-    1000000
294c78
+    600000
294c78
 #endif
294c78
     ;
294c78