From d06692b4d73e027478fa8fc23d48973f53a73154 Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Mon, 10 Jul 2023 11:55:07 +0000
Subject: [PATCH] fix: it seems on some platforms tls no longer works with
 epp.zarc.net.za

---
 modules/registrars/cozaepp/Net/EPP/Client.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/registrars/cozaepp/Net/EPP/Client.php b/modules/registrars/cozaepp/Net/EPP/Client.php
index bf7af69..61d9332 100644
--- a/modules/registrars/cozaepp/Net/EPP/Client.php
+++ b/modules/registrars/cozaepp/Net/EPP/Client.php
@@ -55,7 +55,7 @@
 		* @return a string containing the server <greeting>
 		*/
 		function connect($host, $port=700, $timeout=1, $ssl=true, $context=NULL) {
-			$target = sprintf('%s://%s:%d', ($ssl === true ? 'tls' : 'tcp'), $host, $port);
+			$target = sprintf('%s://%s:%d', ($ssl === true ? 'ssl' : 'tcp'), $host, $port);
 			if (is_resource($context)) {
 				$result = stream_socket_client($target, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $context);
 
-- 
GitLab