summaryrefslogtreecommitdiffstats
path: root/base/ca
diff options
context:
space:
mode:
authorJack Magne <jmagne@localhost.localdomain>2015-07-31 13:55:07 -0700
committerJack Magne <jmagne@localhost.localdomain>2015-07-31 15:28:47 -0700
commite1eb261b467f6e19c7e6604fc7ecb03e8b1f8166 (patch)
treed0714ab570a28cc0e8cf872dbffdacf9565a0899 /base/ca
parentf9102b8df60d50e00d2a45915d06837510cfd1aa (diff)
downloadpki-e1eb261b467f6e19c7e6604fc7ecb03e8b1f8166.tar.gz
pki-e1eb261b467f6e19c7e6604fc7ecb03e8b1f8166.tar.xz
pki-e1eb261b467f6e19c7e6604fc7ecb03e8b1f8166.zip
Firefox warning
Ticket #1523 Move the dire warning about the crypto object to sections where it applies. Also slightly changed the message due to context.
Diffstat (limited to 'base/ca')
-rw-r--r--base/ca/shared/webapps/ca/ee/ca/ProfileSelect.template7
-rw-r--r--base/ca/shared/webapps/ca/services.template6
2 files changed, 7 insertions, 6 deletions
diff --git a/base/ca/shared/webapps/ca/ee/ca/ProfileSelect.template b/base/ca/shared/webapps/ca/ee/ca/ProfileSelect.template
index 5075962d9..2c01b9a41 100644
--- a/base/ca/shared/webapps/ca/ee/ca/ProfileSelect.template
+++ b/base/ca/shared/webapps/ca/ee/ca/ProfileSelect.template
@@ -56,6 +56,11 @@ function getKeyStrengthTableForKeyGen() {
}
+function getNoCryptoWarning() {
+ document.write('<p> <font color="red"> Warning: This version of Firefox no longer supports the crypto web object used to generate and archive keys from the browser. As a result expect limited functionality in this area. </font> </p>');
+ document.write('<br>');
+}
+
function getKeyTypesOptionsForKeyGen() {
var keyTypesDef = "RSA";
var keyTypes = null;
@@ -748,6 +753,7 @@ for (var m = 0; m < inputPluginListSet.length; m++) {
document.writeln('<input type=hidden name=cert_request value="">');
} else {
+ getNoCryptoWarning();
getKeyStrengthTableForKeyGen();
var keyTypesOptions = getKeyTypesOptionsForKeyGen();
@@ -770,6 +776,7 @@ for (var m = 0; m < inputPluginListSet.length; m++) {
} else if (typeof(crypto) != "undefined" && typeof(crypto.version) != "undefined") {
document.writeln('<FONT size="-1" face="PrimaSans BT, Verdana, sans-serif">crmf</FONT><input type=hidden name=' + inputListSet[n].inputId + ' value=crmf>');
} else {
+ getNoCryptoWarning();
document.writeln('Not Supported<input type=hidden name=' + inputListSet[n].inputId + ' value=>');
}
} else if ((inputListSet[n].inputSyntax == 'keygen_request_type') ||
diff --git a/base/ca/shared/webapps/ca/services.template b/base/ca/shared/webapps/ca/services.template
index 0ccbd1c43..0e314b2a7 100644
--- a/base/ca/shared/webapps/ca/services.template
+++ b/base/ca/shared/webapps/ca/services.template
@@ -101,12 +101,6 @@ Certificate System CA Services Page
</tr>
<script language=javascript>
-if (typeof(crypto) != "undefined" && typeof(crypto.version) != "undefined") {
-} else {
- document.write('<p> <font color="red"> Warning: This version of Firefox no longer supports the crypto web object used to generate and archive keys from the browser. Although Certificate System will continue to work, some of the functionality may no longer be supported. </font> </p>');
- document.write('<br>');
-}
-
for (var i=0; i<result.recordSet.length; ++i) {
document.write('<tr valign="TOP">');
document.write('<td>');