gecko-dev/security/nss/lib/fortcrypt/homeinst.htm
2000-03-31 20:13:40 +00:00

212 lines
6.5 KiB
HTML

<HTML>
<--
- The contents of this file are subject to the Mozilla Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is the Netscape security libraries.
-
- The Initial Developer of the Original Code is Netscape
- Communications Corporation. Portions created by Netscape are
- Copyright (C) 1994-2000 Netscape Communications Corporation. All
- Rights Reserved.
-
- Contributor(s):
-
- Alternatively, the contents of this file may be used under the
- terms of the GNU General Public License Version 2 or later (the
- "GPL"), in which case the provisions of the GPL are applicable
- instead of those above. If you wish to allow use of your
- version of this file only under the terms of the GPL and not to
- allow others to use your version of this file under the MPL,
- indicate your decision by deleting the provisions above and
- replace them with the notice and other provisions required by
- the GPL. If you do not delete the provisions above, a recipient
- may use your version of this file under either the MPL or the
- GPL.
-->
<SCRIPT>
// ---------------------- Configuration variables ----------------
var pkcs11jar="bin/fortWIN32.jar";
var pkcs11base="ftp://sweetlou/products/client/dogbert/new";
//pkcs11base="";
win_file = "libfort.jar"
unix = "libfort-v404b9."
mac_file = "macinst.htm"
var winDates = pk_init_array (
"oct_02a_404", "oct_01a_404" );
var unixDates = pk_init_array (
"current", "Oct_02", "Oct_O1");
var comm_platforms = pk_init_array (
"Win32", "Win16", "Mac68k", "MacPPC",
"AIX4.1", "HP-UXA.09", "HP-UXB.10",
"SunOS4.1.3_U1", "SunOS5.4", "SunOS5.5.1",
"BSD_3861.1","BSD_3862.1", "FreeBSD2", "IRIX5.3", "IRIX6.2",
"LinuxELF1.2","LinusELF2.0","NCR4.0","NEC4.2","OSF1V3","SCOOS5.0",
"SINIX-N5.42","SunOS5.4_i86pc","UNIXWARE2.1",
"OS23.0","OS24.0");
var isSupport = pk_init_array ( 1, 1, 0, 1,
1, 1, 1,
1, 1, 1, 1,
0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0,
0, 0, 0,
0, 0 );
var directories = pk_init_array (
"32bit/fortezza", "16bit/fortezza", "", "404-fortezza-items",
"aix4", "hpux", "hpux10",
"sunos4", "sol24", "sol251",
// not really supported
"bsdi", "bsdi2", "freebsd", "irix53", "irix62",
"linux12","linux20","ncr","nec","osf132","sco",
"sinix","solx86","unixware",
"" ,"" );
var files = pk_init_array (
win_file, win_file, mac_file, mac_file,
unix+"rs6000-ibm-aix4.jar",unix+"hppa1.1-hp-hpux9.jar",
unix+"hppa1.1-hp-hpux10.jar",
unix+"sparc-sun-sunos4.1.3_U1.jar",unix+"sparc-sun-solaris2.4.jar",
unix+"sparc-sun-solaris2.5.1.jar",
unix+"x86-bsdi-bsd.jar",unix+"x86-bsdi-bsd2.jar",
unix+"x86-unknown-freebsd.jar",
unix+"mips-sgi-irix5.3.jar",unix+"mips-sgi-irix6.2.jar",
unix+"x86-unknown-linix1.2.jar",unix+"x86-unknown-linix2.0.jar",
unix+"x86-ncr-sysv5.jar",unix+"mips-nec-uxv4.2.jar",
unix+"alpha-dec-osf3.2.jar",unix+"x86-sco-opensv5.0.2",
unix+"mips-sni-reliantunix.jar",unix+"x86-sun-solaris2.4.jar",
unix+"x86-sco-unixware2.1.jar",
win_file, win_file );
function isSupported(InPlat)
{
for (i=0; i < comm_platforms.length; i++) {
if (InPlat == comm_platforms[i]) {
return isSupport[i];
}
}
return 0;
}
function mapPlatform(InPlat)
{
for (i=0; i < comm_platforms.length; i++) {
if (InPlat == comm_platforms[i]) {
return directories[i];
}
}
return InPlat;
}
function mapFile(InPlat)
{
for (i=0; i < comm_platforms.length; i++) {
if (InPlat == comm_platforms[i]) {
return files[i];
}
}
return unix+"unknown-unknown-unknown.jar";
}
function mapDate(platform) {
if ((platform == "MacPPC") || (platform == "Mac68K")) {
return "";
} else if ((platform == "Win32") || (platform == "Win16")) {
return "/oct_2a_404";
} else if ((platform == "OS23.0") || (platform == "OS24.0")) {
return "";
}
return "/current/signed";
}
function mapBaseDir(platform) {
if ((platform == "MacPPC") || (platform == "Mac68K")) {
return "mac";
} else if ((platform == "Win32") || (platform == "Win16")) {
return "windows"
} else if ((platform == "OS23.0") || (platform == "OS24.0")) {
return "os2";
}
return "unix/Fortezza";
}
function pk_init_array()
{
var numArgs = pk_init_array.arguments.length;
var a = new Array(numArgs);
for (var i = 0; i < numArgs; i++) {
a[i] = pk_init_array.arguments[i];
}
return a;
}
function getPlatform() {
return navigator.platform;
}
function getURLPath() {
var string = window.location.href;
end = string.lastIndexOf("/");
if (end == -1) {
end = string.length-1;
}
return string.substring(0,end+1);
}
plat=getPlatform();
platDir = mapPlatform(plat);
platFile = mapFile(plat);
platBase = mapBaseDir(plat);
platDate = mapDate(plat);
if (pkcs11base == "") pkcs11base=getURLPath();
pkcs11loc=pkcs11base+"/"+platBase+"/"+platDir + platDate + "/" + platFile;
function DoInstall(url) {
window.location.href = url;
}
function DoCancel() {
// set window.location.href to your home page if you wish
//alert('Cancel Installation?');
history.back();
}
// ------ Change the following for your own Message --------
document.write("<CENTER><H1>Netscape Fortezza PKCS #11 Module Installer</H1>");
document.write("</CENTER>");
document.write("<Table><TR><TD>");
document.write("<DD><p><IMG SRC=litronic.gif WIDTH=110 Height=63 NAME=LITRONIC></TD>");
document.write("<TD VAlign=Center><i> Netscape Fortezza PKCS #11 Modules require Litronic's MACI drivers to be installed on your platform.");
document.write(" If you haven't already installed theLitronic MACI drivers, please to do so now.</I>");
document.write("</TD></TR></Table>");
// ----- end of generic message section --------
document.write("<p>Netscape has detected you are installing on <b>"+plat+"</b>.<br>");
if (!isSupported(plat)) {
document.write("<b>This platform is currently not suppported for FORTEZZA</b><br>");
}
document.write("Installing: <b>"+pkcs11loc+"</b><br>");
document.write("<FORM>");
document.write("<CENTER><Table><TR><TD><Input Type=Button name=install value='Install Now' onclick=DoInstall("+ "\"" +pkcs11loc+"\""+")>");
document.write("</TD><TD><Input type=Button name=cancel value=Cancel Onclick=DoCancel()>");
document.write("</TD></TR></Table></CENTER>");
document.write("</FORM>");
document.close();
</SCRIPT>
</HTML>