Fixed a hole

Added OCSP renewal support
This commit is contained in:
root 2009-04-23 19:19:58 +00:00
parent 78b025d4a9
commit c7e24e56f7

View file

@ -1678,7 +1678,7 @@
$csrsubject .= "/subjectAltName=".$SAN; $csrsubject .= "/subjectAltName=".$SAN;
$type=""; $type="";
if($_REQUEST["ocspcert"]!="") $type="8"; if($_REQUEST["ocspcert"]!="" && $_SESSION['profile']['admin'] == 1) $type="8";
if($_SESSION['_config']['rowid']['0'] > 0) if($_SESSION['_config']['rowid']['0'] > 0)
{ {
@ -1761,6 +1761,7 @@
`created`='".$row['created']."', `created`='".$row['created']."',
`modified`=NOW(), `modified`=NOW(),
`subject`='".$row['subject']."', `subject`='".$row['subject']."',
`type`='".$row['type']."',
`rootcert`='".$row['rootcert']."'"; `rootcert`='".$row['rootcert']."'";
mysql_query($query); mysql_query($query);
$newid = mysql_insert_id(); $newid = mysql_insert_id();