ignore unknown ptags in certificates instead of causing an error, for future backward compatibility

This commit is contained in:
csoler 2018-02-24 21:51:18 +01:00
parent 13441ff483
commit 39e70ed8bf
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -360,8 +360,9 @@ bool RsCertificate::initFromString(const std::string& instr,uint32_t& err_code)
} }
break ; break ;
default: default:
err_code = CERTIFICATE_PARSING_ERROR_UNKNOWN_SECTION_PTAG ; std::cerr << "(WW) unknwown PTAG 0x" << std::hex << ptag << std::dec << " in certificate! Ignoring it." << std::endl;
return false ; buf = &buf[s] ;
break ;
} }
total_s += s ; total_s += s ;