/[smecontribs]/rpms/phpki/contribs10/phpki-0.82-disable_download_after_create.patch
ViewVC logotype

Annotation of /rpms/phpki/contribs10/phpki-0.82-disable_download_after_create.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Nov 24 14:35:42 2020 UTC (4 years ago) by brianr
Branch: MAIN
CVS Tags: phpki-0_82-24_el7_sme, HEAD
Initial import

1 brianr 1.1 diff -Nur -x '*.orig' -x '*.rej' phpki/phpki-0.82/ca/request_cert.php mezzanine_patched_phpki/phpki-0.82/ca/request_cert.php
2     --- phpki/phpki-0.82/ca/request_cert.php 2008-12-09 10:58:52.000000000 +0100
3     +++ mezzanine_patched_phpki/phpki-0.82/ca/request_cert.php 2008-12-09 10:58:20.000000000 +0100
4     @@ -141,7 +141,7 @@
5     <p><form action='<?=$PHP_SELF?>' method=post>
6     <?= $hidden_fields ?>
7     <input type=hidden name=form_stage value=final>
8     - <input type=submit name=submit value='Yes! Create and Download' >&nbsp;
9     + <input type=submit name=submit value='Yes' >&nbsp;
10     <input type=submit name=submit value='Go Back'>
11     </form>
12    
13     @@ -165,7 +165,7 @@
14     break;
15    
16     case 'final':
17     - if ($submit == "Yes! Create and Download") {
18     + if ($submit == "Yes") {
19     if (! $serial = CAdb_in($email,$common_name)) {
20     list($ret,$errtxt) = CA_create_cert($cert_type,$country, $province, $locality, $organization, $unit, $common_name, $email, $expiry, $passwd, $keysize);
21    
22     @@ -194,22 +194,9 @@
23     $serial = $errtxt;
24     }
25     }
26     + # CLear common_name fiels
27     + $common_name = '';
28    
29     - switch($cert_type) {
30     - case 'server':
31     - upload(array("$config[private_dir]/$serial-key.pem","$config[new_certs_dir]/$serial.pem",$config['cacert_pem']), "$common_name ($email).pem",'application/pkix-cert');
32     - break;
33     - case 'email':
34     - case 'email_signing':
35     - case 'time_stamping':
36     - case 'vpn_client_server':
37     - case 'vpn_client':
38     - case 'vpn_server':
39     - upload("$config[pfx_dir]/$serial.pfx", "$common_name ($email).p12", 'application/x-pkcs12');
40     - break;
41     - }
42     -
43     - break;
44     }
45     default:
46     #

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed