mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
ignore unknown ptags in certificates instead of causing an error, for future backward compatibility
This commit is contained in:
parent
13441ff483
commit
39e70ed8bf
@ -360,8 +360,9 @@ bool RsCertificate::initFromString(const std::string& instr,uint32_t& err_code)
|
||||
}
|
||||
break ;
|
||||
default:
|
||||
err_code = CERTIFICATE_PARSING_ERROR_UNKNOWN_SECTION_PTAG ;
|
||||
return false ;
|
||||
std::cerr << "(WW) unknwown PTAG 0x" << std::hex << ptag << std::dec << " in certificate! Ignoring it." << std::endl;
|
||||
buf = &buf[s] ;
|
||||
break ;
|
||||
}
|
||||
|
||||
total_s += s ;
|
||||
|
Loading…
Reference in New Issue
Block a user