mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-07 14:16:10 -05: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
@ -572,14 +572,13 @@ std::string p3Peers::GetRetroshareInvite()
|
||||
|
||||
std::string certstr ;
|
||||
FILE *fcert = fopen(RsInit::load_cert.c_str(), "r");
|
||||
char *line = NULL;
|
||||
size_t len = 0 ;
|
||||
char c ;
|
||||
|
||||
if(fcert == NULL)
|
||||
return "Error: could not open certificate file." ;
|
||||
|
||||
while(getline(&line,&len,fcert) > 0)
|
||||
certstr += std::string(line) ;
|
||||
while( (c=fgetc(fcert))!=EOF)
|
||||
certstr.push_back(c) ;
|
||||
fclose(fcert) ;
|
||||
|
||||
std::string name = mAuthMgr->getName(ownId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user