90 lines
2.7 KiB
Diff
90 lines
2.7 KiB
Diff
|
diff -up ./lib/pkcs12/p12plcy.c.no_p12_smime_policy ./lib/pkcs12/p12plcy.c
|
||
|
--- ./lib/pkcs12/p12plcy.c.no_p12_smime_policy 2024-06-07 09:26:03.000000000 -0700
|
||
|
+++ ./lib/pkcs12/p12plcy.c 2024-07-17 11:26:00.334836451 -0700
|
||
|
@@ -37,6 +37,7 @@ static pkcs12SuiteMap pkcs12SuiteMaps[]
|
||
|
static PRBool
|
||
|
sec_PKCS12Allowed(SECOidTag alg, PRUint32 needed)
|
||
|
{
|
||
|
+#ifdef notdef
|
||
|
PRUint32 policy;
|
||
|
SECStatus rv;
|
||
|
|
||
|
@@ -48,6 +49,9 @@ sec_PKCS12Allowed(SECOidTag alg, PRUint3
|
||
|
return PR_TRUE;
|
||
|
}
|
||
|
return PR_FALSE;
|
||
|
+#else
|
||
|
+ return PR_TRUE;
|
||
|
+#endif
|
||
|
}
|
||
|
|
||
|
PRBool
|
||
|
diff -up ./lib/smime/smimeutil.c.no_p12_smime_policy ./lib/smime/smimeutil.c
|
||
|
--- ./lib/smime/smimeutil.c.no_p12_smime_policy 2024-06-07 09:26:03.000000000 -0700
|
||
|
+++ ./lib/smime/smimeutil.c 2024-07-17 11:27:04.716617111 -0700
|
||
|
@@ -202,6 +202,7 @@ smime_get_policy_tag_from_key_length(SEC
|
||
|
PRBool
|
||
|
smime_allowed_by_policy(SECOidTag algtag, PRUint32 neededPolicy)
|
||
|
{
|
||
|
+#ifdef notdef
|
||
|
PRUint32 policyFlags;
|
||
|
|
||
|
/* some S/MIME algs map to the same underlying KEA mechanism,
|
||
|
@@ -221,6 +222,7 @@ smime_allowed_by_policy(SECOidTag algtag
|
||
|
PORT_SetError(SEC_ERROR_BAD_EXPORT_ALGORITHM);
|
||
|
return PR_FALSE;
|
||
|
}
|
||
|
+#endif
|
||
|
return PR_TRUE;
|
||
|
}
|
||
|
|
||
|
@@ -485,6 +487,7 @@ smime_init_once(void *arg)
|
||
|
return PR_FAILURE;
|
||
|
}
|
||
|
|
||
|
+#ifdef notdef
|
||
|
/* At initialization time, we need to set up the defaults. We first
|
||
|
* look to see if the system or application has set up certain algorithms
|
||
|
* by policy. If they have set up values by policy we'll only allow those
|
||
|
@@ -497,6 +500,11 @@ smime_init_once(void *arg)
|
||
|
PORT_Free(tags);
|
||
|
tags = NULL;
|
||
|
}
|
||
|
+#else
|
||
|
+ /* just initialize the old maps */
|
||
|
+ rv = SECSuccess;
|
||
|
+ tagCount = 0;
|
||
|
+#endif
|
||
|
if ((rv != SECSuccess) || (tagCount == 0)) {
|
||
|
/* No algorithms have been enabled by policy (either by the system
|
||
|
* or by the application, we then will use the traditional default
|
||
|
diff -up ./smime/smime.sh.no_p12_smime_policy ./smime/smime.sh
|
||
|
--- ./tests/smime/smime.sh.no_p12_smime_policy 2024-07-17 12:27:36.262106070 -0
|
||
|
700
|
||
|
+++ ./tests/smime/smime.sh 2024-07-17 12:29:08.251207306 -0700
|
||
|
@@ -872,8 +872,8 @@ smime_init
|
||
|
smime_main
|
||
|
smime_data_tb
|
||
|
smime_p7
|
||
|
-if [ "${TEST_MODE}" = "SHARED_DB" ] ; then
|
||
|
- smime_policy
|
||
|
-fi
|
||
|
+#if [ "${TEST_MODE}" = "SHARED_DB" ] ; then
|
||
|
+# smime_policy
|
||
|
+#fi
|
||
|
smime_cleanup
|
||
|
|
||
|
diff -up ./tools/tools.sh.no_p12_smime_policy ./tools/tools.sh
|
||
|
--- ./tests/tools/tools.sh.no_p12_smime_policy 2024-07-17 12:27:36.262106070 -0
|
||
|
700
|
||
|
+++ ./tests/tools/tools.sh 2024-07-17 12:28:32.418778346 -0700
|
||
|
@@ -586,7 +586,7 @@ tools_p12()
|
||
|
tools_p12_import_pbmac1_samples
|
||
|
if [ "${TEST_MODE}" = "SHARED_DB" ] ; then
|
||
|
tools_p12_import_rsa_pss_private_key
|
||
|
- tools_p12_policy
|
||
|
+#tools_p12_policy
|
||
|
fi
|
||
|
}
|
||
|
|