mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Changes to get openpgpsdk version working on OSX.
- switch to OSX10.6 for upgraded SSL, with different fn signature. - correct library paths in libretroshare.pro git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5331 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
515a0abdb3
commit
f34f617f00
@ -320,10 +320,15 @@ mac {
|
||||
QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dfopen64=fopen -Dvstatfs64=vstatfs
|
||||
|
||||
UPNPC_DIR = ../../../miniupnpc-1.0
|
||||
GPG_ERROR_DIR = ../../../../libgpg-error-1.7
|
||||
GPGME_DIR = ../../../../gpgme-1.1.8
|
||||
#GPG_ERROR_DIR = ../../../../libgpg-error-1.7
|
||||
#GPGME_DIR = ../../../../gpgme-1.1.8
|
||||
|
||||
OPENPGPSDK_DIR = ../../openpgpsdk/src
|
||||
|
||||
INCLUDEPATH += . $${UPNPC_DIR}
|
||||
INCLUDEPATH += $${OPENPGPSDK_DIR}
|
||||
|
||||
#../openpgpsdk
|
||||
#INCLUDEPATH += . $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src
|
||||
}
|
||||
|
||||
|
@ -586,8 +586,10 @@ X509 *loadX509FromDER(const uint8_t *ptr, uint32_t len)
|
||||
X509 *tmp = NULL;
|
||||
#ifdef __APPLE__
|
||||
// This depends on which version you are compiling for... OSX10.5 doesn't have consts (old OpenSSL!)
|
||||
unsigned char **certptr = (unsigned char **) &ptr;
|
||||
//const unsigned char **certptr = (const unsigned char **) &ptr;
|
||||
// With the Advent of Openpgpsdk, we are forced to move to OSX10.6 for a newer OpenSSL (probably a good thing).
|
||||
// So we can change this around.
|
||||
//unsigned char **certptr = (unsigned char **) &ptr;
|
||||
const unsigned char **certptr = (const unsigned char **) &ptr;
|
||||
#else
|
||||
const unsigned char **certptr = (const unsigned char **) &ptr;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user