We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da5584a commit 740d63eCopy full SHA for 740d63e
src/utils/ofd/ses_signature_parser.js
@@ -62,7 +62,7 @@ const decode = function (der, offset) {
62
const SES_Signature = decodeSES_Signature(der,offset);
63
const type = SES_Signature.toSign.eseal.esealInfo.picture.type;
64
const ofdArray = SES_Signature.toSign.eseal.esealInfo.picture.data.byte;
65
- return {ofdArray, 'type': type.toLowerCase(), SES_Signature,'verifyRet':SES_Signature_Verify(SES_Signature)};
+ return {ofdArray, 'type': typeof type === 'string'?type.toLowerCase():type.str.toLowerCase(), SES_Signature,'verifyRet':SES_Signature_Verify(SES_Signature)};
66
} catch (e) {
67
console.log(e)
68
return {};
0 commit comments