3
* ***** BEGIN LICENSE BLOCK *****
4
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
6
* The contents of this file are subject to the Mozilla Public
7
* License Version 1.1 (the "MPL"); you may not use this file
8
* except in compliance with the MPL. You may obtain a copy of
9
* the MPL at http://www.mozilla.org/MPL/
11
* Software distributed under the MPL is distributed on an "AS
12
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
13
* implied. See the MPL for the specific language governing
14
* rights and limitations under the MPL.
16
* The Original Code is Enigmail.
18
* The Initial Developer of the Original Code is Ramalingam Saravanan.
19
* Portions created by Ramalingam Saravanan <svn@xmlterm.org> are
20
* Copyright (C) 2002 Ramalingam Saravanan. All Rights Reserved.
23
* Patrick Brunschwig <patrick@mozilla-enigmail.org>
25
* Alternatively, the contents of this file may be used under the terms of
26
* either the GNU General Public License Version 2 or later (the "GPL"), or
27
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28
* in which case the provisions of the GPL or the LGPL are applicable instead
29
* of those above. If you wish to allow use of your version of this file only
30
* under the terms of either the GPL or the LGPL, and not to allow others to
31
* use your version of this file under the terms of the MPL, indicate your
32
* decision by deleting the provisions above and replace them with the notice
33
* and other provisions required by the GPL or the LGPL. If you do not delete
34
* the provisions above, a recipient may use your version of this file under
35
* the terms of any one of the MPL, the GPL or the LGPL.
36
* ***** END LICENSE BLOCK ***** *
39
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
40
<?xml-stylesheet href="chrome://enigmail/skin/enigmail.css" type="text/css"?>
42
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
44
<!DOCTYPE window SYSTEM "chrome://enigmail/locale/enigmail.dtd" >
48
title="&enigmail.keygenTitle.label;"
49
windowtype="enigmail:keygen"
50
width="600" height="480"
52
onload="enigmailKeygenLoad()"
53
onclose="return enigmailOnClose();"
54
xmlns:html="http://www.w3.org/1999/xhtml"
55
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
57
<script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js" />
59
<script type="application/x-javascript" src="chrome://enigmail/content/enigmailCommon.js"/>
60
<script type="application/x-javascript" src="chrome://enigmail/content/enigmailKeygen.js"/>
62
<popupset id="aTooltipSet"/>
64
<groupbox id="userIdBox" orient="vertical">
66
<hbox orient="horizontal" align="center">
67
<label value="&enigmail.keyUserId.label;" control="userIdentity"/>
68
<menulist id="userIdentity" label="..." flex="1">
69
<menupopup id="userIdentityPopup"/>
73
<checkbox id="useForSigning"
74
label="&enigmail.useForSigning.label;"
79
<checkbox id="noPassphrase"
80
label="&enigmail.keyNoPassphrase.label;"
81
oncommand="enigmailKeygenUpdate(false, false);" />
91
<hbox id="passphraseBox" align="center">
92
<label control="passphrase" value="&enigmail.keyPassphrase.label;" />
95
<textbox id="passphrase" type="password" />
96
<label control="passphraseRepeat" value="&enigmail.keyPassphraseRepeat.label;" />
97
<textbox id="passphraseRepeat" type="password" />
102
<hbox align="center">
103
<label control="keyComment" value="&enigmail.keyComment.label;" />
105
<textbox id="keyComment" />
111
<tabs id="settingsTabBox">
112
<tab id="basicTab" label="&enigmail.keyGen.expiry.title;"/>
113
<tab id="advancedTab" label="&enigmail.advancedPrefsButton.label;"/>
118
<hbox> <!-- Basic Tab -->
119
<hbox align="center">
120
<label value="&enigmail.keyGen.expire.label;" control="expireInput"/>
122
<hbox align="center">
123
<textbox id="expireInput" size="5" maxlength="5" value="5"/>
124
<menulist id="timeScale" label="&enigmail.keyGen.years.label;" value="365">
125
<menupopup id="timeScalePopup">
126
<menuitem id="years" value="365" label="&enigmail.keyGen.years.label;" selected="true"/>
127
<menuitem id="months" value="30" label="&enigmail.keyGen.months.label;"/>
128
<menuitem id="days" value="1" label="&enigmail.keyGen.days.label;"/>
131
<checkbox label="&enigmail.keyGen.noExpiry.label;"
132
id="noExpiry" oncommand="onNoExpiry()"/>
136
<vbox> <!-- Advanced Tab -->
145
<hbox align="center">
146
<label value="&enigmail.keyGen.keySize.label;" control="keySize"/>
149
<menulist id="keySize" label="2048" value="2048" >
150
<menupopup id="keySizePopup">
151
<menuitem id="keySize_1024" value="1024" label="1024"/>
152
<menuitem id="keySize_2048" value="2048" label="2048" selected="true"/>
153
<menuitem id="keySize_4096" value="4096" label="4096"/>
159
<hbox align="center">
160
<label value="&enigmail.keyGen.keyType.label;" control="keyType"/>
163
<menulist id="keyType" label="&enigmail.keyGen.keyType.dsa;" value="1" >
164
<menupopup id="keyTypePopup">
165
<menuitem id="keySize_rsa" value="2" label="&enigmail.keyGen.keyType.rsa;" selected="true"/>
166
<menuitem id="keyType_dsa" value="1" label="&enigmail.keyGen.keyType.dsa;"/>
179
<hbox autostretch="never">
180
<button label="&enigmail.generateKey.label;"
183
tooltiptext="&enigmail.generateKey.tooltip;"
184
oncommand="enigmailKeygenStart();" />
186
<button label="&enigmail.cancelKey.label;"
189
tooltiptext="&enigmail.cancelKey.tooltip;"
190
oncommand="enigmailKeygenCancel();" />
195
<groupbox id="keygenConsoleBox" orient="vertical" flex="1">
197
<caption label="&enigmail.keyGen.console.label;"/>
199
<description>&enigmail.keygen.desc;</description>
202
<progressmeter id="keygenProgress" mode="determined" value="0"/>