From 002d0cfa5445bd40e9defd37a0c8f456a367f3c0 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Thu, 13 Jul 2023 10:29:33 +0300 Subject: [PATCH] Some long overdue updates --- epp.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/epp.php b/epp.php index 21386a3..3254e89 100644 --- a/epp.php +++ b/epp.php @@ -11,6 +11,8 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract { public $config = array(); + public $socket; + public $isLogined; public function __construct($options) { @@ -29,6 +31,15 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract if(isset($options['registrarprefix'])) { $this->config['registrarprefix'] = $options['registrarprefix']; } + if(isset($options['ssl_cert'])) { + $this->config['ssl_cert'] = $options['ssl_cert']; + } + if(isset($options['ssl_key'])) { + $this->config['ssl_key'] = $options['ssl_key']; + } + if(isset($options['ssl_ca'])) { + $this->config['ssl_ca'] = $options['ssl_ca']; + } } public function getTlds() @@ -49,6 +60,7 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract 'password' => array('password', array( 'label' => 'EPP Server Password', 'required' => true, + 'renderPassword' => true, ), ), 'host' => array('text', array( @@ -66,6 +78,21 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract 'required' => true, ), ), + 'ssl_cert' => array('textarea', array( + 'label' => 'SSL Certificate', + 'required' => true, + ), + ), + 'ssl_key' => array('textarea', array( + 'label' => 'SSL Key', + 'required' => true, + ), + ), + 'ssl_ca' => array('textarea', array( + 'label' => 'SSL CA', + 'required' => false, + ), + ), ), ); }