add location to account detail at startup, and improve the peersdialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2075 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-01-18 22:44:09 +00:00
parent 5f27d75dc4
commit ac580a6c07
10 changed files with 548 additions and 808 deletions

View file

@ -2239,7 +2239,7 @@ int AuthSSL::VerifyX509Callback(int preverify_ok, X509_STORE_CTX *ctx)
// Not dependent on sslroot. load, and detroys the X509 memory.
int LoadCheckX509andGetName(const char *cert_file, std::string &userName, std::string &userId)
int LoadCheckX509andGetLocation(const char *cert_file, std::string &location, std::string &userId)
{
/* This function loads the X509 certificate from the file,
* and checks the certificate
@ -2270,7 +2270,7 @@ int LoadCheckX509andGetName(const char *cert_file, std::string &userName, std::s
if (valid)
{
// extract the name.
userName = getX509CNString(x509->cert_info->subject);
location = getX509LocString(x509->cert_info->subject);
}
std::cout << getX509Info(x509) << std::endl ;