equal
deleted
inserted
replaced
3273 $code = ' |
3273 $code = ' |
3274 <script type="text/javascript"> |
3274 <script type="text/javascript"> |
3275 |
3275 |
3276 function runEncryption() |
3276 function runEncryption() |
3277 { |
3277 { |
|
3278 var frm = document.forms.'.$form_name.'; |
|
3279 whiteOutForm(frm); |
|
3280 |
3278 load_component(\'crypto\'); |
3281 load_component(\'crypto\'); |
3279 var testpassed = ' . ( ( isset($_GET['use_crypt']) && $_GET['use_crypt']=='0') ? 'false; // CRYPTO-AUTH DISABLED ON USER REQUEST // ' : '' ) . '( aes_self_test() && md5_vm_test() ); |
3282 var testpassed = ' . ( ( isset($_GET['use_crypt']) && $_GET['use_crypt']=='0') ? 'false; // CRYPTO-AUTH DISABLED ON USER REQUEST // ' : '' ) . '( aes_self_test() && md5_vm_test() ); |
3280 var frm = document.forms.'.$form_name.'; |
|
3281 var use_diffiehellman = false;' . "\n"; |
3283 var use_diffiehellman = false;' . "\n"; |
3282 if ( $dh_supported && $dh_pubkey ) |
3284 if ( $dh_supported && $dh_pubkey ) |
3283 { |
3285 { |
3284 $code .= <<<EOF |
3286 $code .= <<<EOF |
3285 if ( frm.$dh_supported.value == 'true' && !is_iPhone ) |
3287 if ( frm.$dh_supported.value == 'true' && !is_iPhone ) |
3299 var el = frm.' . $pw_field . '; |
3301 var el = frm.' . $pw_field . '; |
3300 while ( el.tagName != "BODY" && el.tagName != "TABLE" ) |
3302 while ( el.tagName != "BODY" && el.tagName != "TABLE" ) |
3301 { |
3303 { |
3302 el = el.parentNode; |
3304 el = el.parentNode; |
3303 } |
3305 } |
|
3306 /* |
3304 if ( el.tagName == "TABLE" ) |
3307 if ( el.tagName == "TABLE" ) |
3305 { |
3308 { |
3306 whiteOutElement(el); |
3309 whiteOutElement(el); |
3307 } |
3310 } |
|
3311 */ |
3308 |
3312 |
3309 frm.'.$use_crypt.'.value = \'yes_dh\'; |
3313 frm.'.$use_crypt.'.value = \'yes_dh\'; |
3310 |
3314 |
3311 // Perform Diffie Hellman stuff |
3315 // Perform Diffie Hellman stuff |
3312 // console.info("DiffieHellman: started keygen process"); |
3316 // console.info("DiffieHellman: started keygen process"); |