mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 16:45:11 -04:00
compliance with win32
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1023 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
78c07ca367
commit
96a9aee189
1 changed files with 3 additions and 4 deletions
|
@ -572,14 +572,13 @@ std::string p3Peers::GetRetroshareInvite()
|
||||||
|
|
||||||
std::string certstr ;
|
std::string certstr ;
|
||||||
FILE *fcert = fopen(RsInit::load_cert.c_str(), "r");
|
FILE *fcert = fopen(RsInit::load_cert.c_str(), "r");
|
||||||
char *line = NULL;
|
char c ;
|
||||||
size_t len = 0 ;
|
|
||||||
|
|
||||||
if(fcert == NULL)
|
if(fcert == NULL)
|
||||||
return "Error: could not open certificate file." ;
|
return "Error: could not open certificate file." ;
|
||||||
|
|
||||||
while(getline(&line,&len,fcert) > 0)
|
while( (c=fgetc(fcert))!=EOF)
|
||||||
certstr += std::string(line) ;
|
certstr.push_back(c) ;
|
||||||
fclose(fcert) ;
|
fclose(fcert) ;
|
||||||
|
|
||||||
std::string name = mAuthMgr->getName(ownId);
|
std::string name = mAuthMgr->getName(ownId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue