[fix] removing the concept of shared cert in m_ssl

This commit is contained in:
Benjamin Sonntag 2018-06-24 18:38:47 +02:00
parent 9e4021141a
commit 649b2c55d6
1 changed files with 3 additions and 3 deletions

View File

@ -254,7 +254,7 @@ INSTR(CONCAT(sd.sub,IF(sd.sub!='','.',''),sd.domaine),'.')+1))=?
// ----------------------------------------------------------------- // -----------------------------------------------------------------
/** Return all the SSL certificates for an account (or the searched one) /** Return all the SSL certificates for an account (or the searched one)
* @param $filter an integer telling which certificate we want to see (see FILTER_* constants above) * @param $filter an integer telling which certificate we want to see (see FILTER_* constants above)
* the default is showing all certificate, but only Pending and OK certificates, not expired or shared one * the default is showing all certificate, but only Pending and OK certificates, not expired
* when there is more than 10. * when there is more than 10.
* @return array all the ssl certificate this user can use * @return array all the ssl certificate this user can use
* (each array is the content of the certificates table) * (each array is the content of the certificates table)
@ -479,7 +479,7 @@ INSTR(CONCAT(sd.sub,IF(sd.sub!='','.',''),sd.domaine),'.')+1))=?
// Everything is PERFECT and has been thoroughly checked, let's insert those in the DB ! // Everything is PERFECT and has been thoroughly checked, let's insert those in the DB !
$db->query( $db->query(
"INSERT INTO certificates SET uid=?, status=?, shared=0, fqdn=?, altnames=?, validstart=FROM_UNIXTIME(?), validend=FROM_UNIXTIME(?), sslkey=?, sslcrt=?, sslchain=?, provider=?;", "INSERT INTO certificates SET uid=?, status=?, fqdn=?, altnames=?, validstart=FROM_UNIXTIME(?), validend=FROM_UNIXTIME(?), sslkey=?, sslcrt=?, sslchain=?, provider=?;",
array($cuid, self::STATUS_OK, $fqdn, $altnames, intval($validstart), intval($validend), $key, $crt, $chain, $provider) array($cuid, self::STATUS_OK, $fqdn, $altnames, intval($validstart), intval($validend), $key, $crt, $chain, $provider)
); );
if (!($id = $db->lastid())) { if (!($id = $db->lastid())) {
@ -550,7 +550,7 @@ SELECT ?,?,?, FROM_UNIXTIME(?), FROM_UNIXTIME(?), ?, ?, sslcsr FROM certificate
* Action may be create/postinst/delete/enable/disable * Action may be create/postinst/delete/enable/disable
* Change the template for this domain name to have the proper CERTIFICATE * Change the template for this domain name to have the proper CERTIFICATE
* An algorithm determine the best possible certificate, which may be a BAD one * An algorithm determine the best possible certificate, which may be a BAD one
* (like a generic admin-shared or self-signed for localhost as a last chance) * (like a generic self-signed for localhost as a last chance)
*/ */
public function updateDomain($action, $type, $fqdn, $mail = 0, $value = "") { public function updateDomain($action, $type, $fqdn, $mail = 0, $value = "") {
global $db, $msg, $dom; global $db, $msg, $dom;