mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
system: remove unused cert_get_subject_array()
This commit is contained in:
parent
51dcbcc39e
commit
54629f459d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user