mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-01 11:21:25 -05: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 ;
|
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 ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user