mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 12:24:24 -04:00
improved certificate parsing in Home so that corrupted certs never get accepted
This commit is contained in:
parent
214fbc7957
commit
7da68ff72d
4 changed files with 33 additions and 15 deletions
|
@ -41,7 +41,7 @@ class RsCertificate
|
|||
const unsigned char *pgp_key() const { return binary_pgp_key ; }
|
||||
size_t pgp_key_size() const { return binary_pgp_key_size ; }
|
||||
|
||||
static bool cleanCertificate(const std::string& input,std::string& output,RsCertificate::Format& format,int& error_code) ;
|
||||
static bool cleanCertificate(const std::string& input, std::string& output, RsCertificate::Format& format, int& error_code, bool check_content) ;
|
||||
|
||||
private:
|
||||
static bool cleanCertificate(const std::string& input,std::string& output,int&) ; // new radix format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue