mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-26 04:18:29 +02:00
Small update to make sure SSL check can be turned off
This commit is contained in:
parent
76e754212c
commit
919e027d29
1 changed files with 11 additions and 9 deletions
|
@ -267,6 +267,7 @@ $server->on('Receive', function(\Swoole\Server $serv, int $fd, int $reactorId, s
|
|||
$xmlString = $xml->asXML();
|
||||
$trans = createTransaction($pdo, $clid, $clTRID, $xmlString);
|
||||
|
||||
if (!empty($c['mandatory_client_ssl'])) {
|
||||
$fingerprint = getClientFingerprint($serv, $fd);
|
||||
|
||||
if (!$fingerprint) {
|
||||
|
@ -280,6 +281,7 @@ $server->on('Receive', function(\Swoole\Server $serv, int $fd, int $reactorId, s
|
|||
sendEppError($conn, $pdo, 2201, 'Client certificate authentication failed: incorrect certificate', $clTRID);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (checkLogin($pdo, $clID, $pw)) {
|
||||
if (isset($xml->command->login->newPW)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue