From 54629f459da6758e7e39f5b12a7ade28648e67ca Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 24 Apr 2025 08:58:13 +0200 Subject: [PATCH] system: remove unused cert_get_subject_array() --- src/etc/inc/certs.inc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/etc/inc/certs.inc b/src/etc/inc/certs.inc index 869f341af..23f2889f3 100644 --- a/src/etc/inc/certs.inc +++ b/src/etc/inc/certs.inc @@ -195,25 +195,6 @@ function cert_get_subject($str_crt, $decode = true) return certs_build_name($components); } -function cert_get_subject_array($crt) -{ - $str_crt = base64_decode($crt); - $inf_crt = openssl_x509_parse($str_crt); - $components = $inf_crt['subject']; - - if (!is_array($components)) { - return; - } - - $subject_array = array(); - - foreach ($components as $a => $v) { - $subject_array[] = array('a' => $a, 'v' => $v); - } - - return $subject_array; -} - function cert_get_issuer($str_crt, $decode = true) { if ($decode) {