fixed up nogui for new rsaccounts stuff.

added missing OSX make stuff.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-initdev@7075 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2014-02-01 03:26:26 +00:00
parent 82b50d3b46
commit 7ca3ed78ae
2 changed files with 16 additions and 11 deletions

View File

@ -2,7 +2,7 @@ TEMPLATE = app
TARGET = retroshare-nogui
CONFIG += bitdht
#CONFIG += introserver
CONFIG += sshserver
#CONFIG += sshserver
CONFIG -= qt xml gui
# if you are linking against the libretroshare with gxs.
@ -106,7 +106,20 @@ macx {
# ENABLE THIS OPTION FOR Univeral Binary BUILD.
# CONFIG += ppc x86
LIBS += -Wl,-search_paths_first
LIBS += -Wl,-search_paths_first
LIBS += ../../libretroshare/src/lib/libretroshare.a
LIBS += ../../openpgpsdk/src/lib/libops.a -lbz2
LIBS += -lssl -lcrypto -lz
LIBS += ../../../miniupnpc-1.0/libminiupnpc.a
LIBS += -framework CoreFoundation
LIBS += -framework Security
gxs {
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
# LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
LIBS += ../../../lib/libsqlcipher.a
}
}
##################################### FreeBSD ######################################

View File

@ -237,15 +237,7 @@ int main(int argc, char **argv)
RsControl *rsServer = createRsControl(*notify);
rsicontrol = rsServer ;
std::string preferredId, gpgId, gpgName, gpgEmail, sslName;
RsInit::getPreferedAccountId(preferredId);
if (RsInit::getAccountDetails(preferredId, gpgId, gpgName, gpgEmail, sslName))
{
RsInit::SelectGPGAccount(gpgId);
}
/* Key + Certificate are loaded into libretroshare */
/* PreferredId => Key + Certificate are loaded into libretroshare */
std::string error_string ;
int retVal = RsInit::LockAndLoadCertificates(false,error_string);