Refactored code for generatecertpath function, removed old code

This commit is contained in:
Philipp Dunkel 2009-10-15 21:41:37 +00:00
parent 20a89f4232
commit e0cf962275

View file

@ -463,23 +463,11 @@ function verifyEmail($email)
} }
$csrname=generatecertpath("csr","gpg",$id);
$do=`gpg --homedir $cwd --batch --export-options export-minimal --export $keyid >$csrname`;
$do=`gpg --homedir $cwd --batch --export-options export-minimal --export $keyid >../csr/gpg-$id.csr`; mysql_query("update `gpg` set `csr`='$csrname' where `id`='$id'");
//echo "Export: $do\n";
//$fp = fopen("../csr/gpg-$id.csr", "w");
//fputs($fp, clean_csr($CSR'));
//fclose($fp);
if(1)
{
mysql_query("update `gpg` set `csr`='../csr/gpg-$id.csr' where `id`='$id'");
waitForResult('gpg', $id); waitForResult('gpg', $id);
}
showheader(_("Welcome to CAcert.org")); showheader(_("Welcome to CAcert.org"));
echo $resulttable; echo $resulttable;