mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-05 05:18:28 +00:00
X509: Fix DirectoryString syntax
This commit is contained in:
parent
0afed5b65b
commit
d980a91360
@ -251,16 +251,14 @@ class File_X509 {
|
|||||||
// Explicitly Tagged Module, 1988 Syntax
|
// Explicitly Tagged Module, 1988 Syntax
|
||||||
// http://tools.ietf.org/html/rfc5280#appendix-A.1
|
// http://tools.ietf.org/html/rfc5280#appendix-A.1
|
||||||
|
|
||||||
$temp = array('min' => 1, 'max' => -1);
|
|
||||||
|
|
||||||
$DirectoryString = array(
|
$DirectoryString = array(
|
||||||
'type' => FILE_ASN1_TYPE_CHOICE,
|
'type' => FILE_ASN1_TYPE_CHOICE,
|
||||||
'children' => array(
|
'children' => array(
|
||||||
'teletexString' => $temp + array('type' => FILE_ASN1_TYPE_TELETEX_STRING),
|
'teletexString' => array('type' => FILE_ASN1_TYPE_TELETEX_STRING),
|
||||||
'printableString' => $temp + array('type' => FILE_ASN1_TYPE_PRINTABLE_STRING),
|
'printableString' => array('type' => FILE_ASN1_TYPE_PRINTABLE_STRING),
|
||||||
'universalString' => $temp + array('type' => FILE_ASN1_TYPE_UNIVERSAL_STRING),
|
'universalString' => array('type' => FILE_ASN1_TYPE_UNIVERSAL_STRING),
|
||||||
'utf8String' => $temp + array('type' => FILE_ASN1_TYPE_UTF8_STRING),
|
'utf8String' => array('type' => FILE_ASN1_TYPE_UTF8_STRING),
|
||||||
'bmpString' => $temp + array('type' => FILE_ASN1_TYPE_BMP_STRING)
|
'bmpString' => array('type' => FILE_ASN1_TYPE_BMP_STRING)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user