From b05cff1320442b1841757ec745fa79fdd3528aa8 Mon Sep 17 00:00:00 2001 From: monnerat Date: Fri, 12 Oct 2012 01:01:20 +0100 Subject: [PATCH] ASN1: process input NULL fields. --- phpseclib/File/ASN1.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index 9c5499a7..7eccf690 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -668,6 +668,8 @@ class File_ASN1 { } case FILE_ASN1_TYPE_OCTET_STRING: return base64_encode($decoded['content']); + case FILE_ASN1_TYPE_NULL: + return ''; case FILE_ASN1_TYPE_BOOLEAN: return $decoded['content']; case FILE_ASN1_TYPE_NUMERIC_STRING: