summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-02-19 19:19:13 +0100
committerBenny Baumann <BenBE@geshi.org>2013-02-19 19:26:58 +0100
commit324c036d5823739afd6735e4c2a23b95b4dbcea6 (patch)
treea0bc73fc7f84ad7324fd722015c4cb8d894ddd1f
parent15e708ae893f19f5df7756efb6099d83417f4259 (diff)
downloadcacert-devel-324c036d5823739afd6735e4c2a23b95b4dbcea6.tar.gz
cacert-devel-324c036d5823739afd6735e4c2a23b95b4dbcea6.tar.xz
cacert-devel-324c036d5823739afd6735e4c2a23b95b4dbcea6.zip
bug 964: Make the structure of some queries more easy to read
-rw-r--r--www/keygenIE.js23
1 files changed, 14 insertions, 9 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js
index e6dd911..50faf76 100644
--- a/www/keygenIE.js
+++ b/www/keygenIE.js
@@ -128,11 +128,14 @@ var CAcert_keygen_IE = function () {
var alg = getAlgorithm();
var bits = parseInt(keySize.value, 10);
- if ( bits < alg.MinLength || bits > alg.MaxLength ||
- (alg.IncrementLength &&
- (bits - alg.MinLength) % alg.IncrementLength !== 0)
+ if (
+ (bits < alg.MinLength) ||
+ (bits > alg.MaxLength) ||
+ (
+ alg.IncrementLength &&
+ ((bits - alg.MinLength) % alg.IncrementLength !== 0)
)
- {
+ ) {
return false;
}
@@ -434,12 +437,14 @@ var CAcert_keygen_IE = function () {
/// Get the selected key size
var getKeySize = function () {
var bits = parseInt(keySize.value, 10);
- if ( bits < getMinSigKeyLength() || bits > getMaxSigKeyLength() ||
- (getStepSigKeyLength() &&
- (bits - getMinSigKeyLength()) %
- getStepSigKeyLength() !== 0)
+ if (
+ (bits < getMinSigKeyLength()) ||
+ (bits > getMaxSigKeyLength()) ||
+ (
+ getStepSigKeyLength() &&
+ ((bits - getMinSigKeyLength()) % getStepSigKeyLength() !== 0)
)
- {
+ ) {
return false;
}