libretroshare now compiles for Android, instruction on how to do it included

This commit is contained in:
Gio 2016-08-03 00:48:19 +02:00
parent b7416ba207
commit 9a980def2c
16 changed files with 994 additions and 45 deletions

View file

@ -26,11 +26,12 @@
*
*/
#include <sys/socket.h>
#include "retroshare/rspeers.h"
class p3LinkMgr;
class p3PeerMgr;
class p3NetMgr;
struct sockaddr_storage;
class p3Peers: public RsPeers

View file

@ -200,6 +200,7 @@ bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd
/******************** OSX KeyChain stuff *****************************/
#else /* UNIX, but not HAS_GNOME_KEYRING or APPLE */
#ifdef TODO_CODE_ROTTEN
FILE* helpFile = RsDirUtil::rs_fopen(getAutologinFileName(ssl_id).c_str(), "r");
if(helpFile == NULL){
@ -248,6 +249,7 @@ bool RsLoginHandler::tryAutoLogin(const RsPeerId& ssl_id,std::string& ssl_passwd
delete key;
return true;
#endif //TODO_CODE_ROTTEN
#endif // APPLE
#endif // HAS_GNOME_KEYRING
/******* WINDOWS BELOW *****/
@ -419,6 +421,7 @@ bool RsLoginHandler::enableAutoLogin(const RsPeerId& ssl_id,const std::string& s
/***************** OSX KEYCHAIN ****************/
#else
#ifdef TODO_CODE_ROTTEN
/* WARNING: Autologin is inherently unsafe */
FILE* helpFile = RsDirUtil::rs_fopen(getAutologinFileName.c_str(), "w");
@ -450,6 +453,7 @@ bool RsLoginHandler::enableAutoLogin(const RsPeerId& ssl_id,const std::string& s
return true;
#endif // TODO_CODE_ROTTEN
#endif // __APPLE__
#endif // HAS_GNOME_KEYRING.
#else /* windows */