From 7ca3ed78ae2f0e8526b2427b51127be526f91c02 Mon Sep 17 00:00:00 2001 From: drbob Date: Sat, 1 Feb 2014 03:26:26 +0000 Subject: [PATCH] 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 --- retroshare-nogui/src/retroshare-nogui.pro | 17 +++++++++++++++-- retroshare-nogui/src/retroshare.cc | 10 +--------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/retroshare-nogui/src/retroshare-nogui.pro b/retroshare-nogui/src/retroshare-nogui.pro index 0330c2602..df689f97a 100644 --- a/retroshare-nogui/src/retroshare-nogui.pro +++ b/retroshare-nogui/src/retroshare-nogui.pro @@ -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 ###################################### diff --git a/retroshare-nogui/src/retroshare.cc b/retroshare-nogui/src/retroshare.cc index 44d8712a7..4c3db5cff 100644 --- a/retroshare-nogui/src/retroshare.cc +++ b/retroshare-nogui/src/retroshare.cc @@ -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);