Skip to content

Commit fbc8427

Browse files
authored
Update CodebaseLoader5.php
1 parent 0ab89bc commit fbc8427

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Autoload/CodebaseLoader5.php

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public function __construct(array $options = null)
8888

8989
public function sign($cleartext,$private_key, $sep = null, $ATTACHMENT = '')
9090
{
91+
if(is_array($private_key)){
92+
$private_key = \openssl_get_privatekey($private_key[0],$private_key[1]);
93+
}
94+
9195
if(null===$sep){
9296
$sep = self::PHP_STOP_PARSING_TOKEN;
9397
}

0 commit comments

Comments
 (0)