Tweaked rscertificate to return empty sslid, if only_pgp is set.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6615 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2013-08-26 06:56:20 +00:00
parent 0608f67d71
commit 5dffde209a
2 changed files with 14 additions and 1 deletions

View File

@ -314,6 +314,19 @@ bool RsCertificate::initFromString(const std::string& instr,uint32_t& err_code)
return true ;
}
std::string RsCertificate::sslid_string() const
{
if (only_pgp)
{
std::string empty;
return empty;
}
else
{
return location_id.toStdString(false);
}
}
std::string RsCertificate::ext_ip_string() const
{
std::ostringstream os ;

View File

@ -35,7 +35,7 @@ class RsCertificate
std::string ext_ip_string() const ;
std::string loc_ip_string() const ;
std::string dns_string() const { return dns_name ; }
std::string sslid_string() const { return location_id.toStdString(false) ; }
std::string sslid_string() const;
std::string armouredPGPKey() const ;
unsigned short ext_port_us() const ;