Modified libretroshare to compile under MacOSX.

1) b64.c used c++ functions -> b64.cc
2) OSX will use miniupnpc for now -> modified #defines.
3) change in openssl fn signature?
4) updated build file for OSX.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2344 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2010-02-16 22:25:58 +00:00
parent 4a5bd60880
commit 56e9536336
7 changed files with 62 additions and 17 deletions

View file

@ -1158,9 +1158,14 @@ X509 *AuthSSL::loadX509FromDER(const uint8_t *ptr, uint32_t len)
std::cerr << std::endl;
#endif
X509 *tmp = NULL;
const unsigned char **certptr = (const unsigned char **) &ptr;
X509 *x509 = d2i_X509(&tmp, certptr, len);
X509 *tmp = NULL;
#ifdef __APPLE__
unsigned char **certptr = (unsigned char **) &ptr;
#else
const unsigned char **certptr = (const unsigned char **) &ptr;
#endif
X509 *x509 = d2i_X509(&tmp, certptr, len);
return x509;
}