summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-11-20 12:20:21 +0100
committerMichael Tänzer <neo@nhng.de>2013-11-20 12:20:21 +0100
commit036f7b674615b72ae0119a5f5a403f95fb7ad977 (patch)
tree248abaa23a4f2b5b9149da2bb785ea38417dc14e
parent76379293e7ef241412ca9890dab699698bfef925 (diff)
downloadcacert-devel-bug-1218.tar.gz
cacert-devel-bug-1218.tar.xz
cacert-devel-bug-1218.zip
Bug 1218: Exportable flag needs to be explicitly set on Win XPbug-1218
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--www/keygenIE.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js
index 990be35..4c15b23 100644
--- a/www/keygenIE.js
+++ b/www/keygenIE.js
@@ -545,11 +545,9 @@ var CAcert_keygen_IE = function () {
}
}
- // This is actually the default
- //cenroll.GenKeyFlags = cenroll.GenKeyFlags | 0x1; //CRYPT_EXPORTABLE
-
- // keysize is encoded in the uper 16 bits
- cenroll.GenKeyFlags = cenroll.GenKeyFlags | bits << 16;
+ cenroll.GenKeyFlags = bits << 16; // keysize is encoded in the uper 16 bits
+ // Allow exporting the private key
+ cenroll.GenKeyFlags = cenroll.GenKeyFlags | 0x1; //CRYPT_EXPORTABLE
generatingKeyNotice.style.display = "";