Closed saintger closed 10 years ago
Hmm. Most of those warnings are to do with openssl. Doing a quick search, it looks like Apple has decided to deprecate it: http://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion Apparently, you can avoid the warnings if you use a non-system openssl. Or you can silence the deprecation warnings if you use ./configure --with-cc-opt="-Wno-deprecated-declarations" (I have not tried this as I don't have a mac).
Looks like there are other warnings are because I use g++ to compile C code. I do this, because there are parts (mainly Windows stuff) that are C++ and it saves headaches.
Any other warnings in there are lost in the noise.
Silencing the deprecation warnings is not recommended (I had to actively look for these warnings anyway, the default is to hide them if you use Homebrew to install Burp).
It seems that when openssl is deprecated, the only solution would be for Burp to provide its own version of openssl (or use the Homebrew forumula patch to include openssl).
The OpenSSL source is about four times the size of burp. I don't want to have to maintain that because of some strange Apple decision. I am not sure who looks after the burp homebrew stuff.
It seems nobody in particular maintain the Homebrew Burp formula. It is just volunteers like me... ;-)
I think we may ignore the problem for the moment, but as Apple is planning to deprecate openssl, the problem may come back in the near future to bit us back.
If they remove the system openssl, it may be possible to require openssl as a dependency and compile against it.
I propose that you close this bug and keep it as a reference.
Thanks for the help !
OK, I will do that. Meanwhile, I noticed some good warnings about readlink above. I will fix those.
Here are the warnings for version 1.4.16. There are still some not related to openssl I think.
==>Entering directory /tmp/burp-1.4.16/src
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti acl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti asyncio.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
asyncio.c:103:2: warning: 'ERR_clear_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_clear_error();
^
/usr/include/openssl/err.h:278:6: note: 'ERR_clear_error' declared here
void ERR_clear_error(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:104:4: warning: 'SSL_read' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
r=SSL_read(ssl, readbuf+readbuflen, readbufmaxsize-readbuflen);
^
/usr/include/openssl/ssl.h:1493:6: note: 'SSL_read' declared here
int SSL_read(SSL *ssl,void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:106:9: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
switch(SSL_get_error(ssl, r))
^
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here
int SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:116:3: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_shutdown(ssl);
^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:183:2: warning: 'ERR_clear_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_clear_error();
^
/usr/include/openssl/err.h:278:6: note: 'ERR_clear_error' declared here
void ERR_clear_error(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:184:4: warning: 'SSL_write' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
w=SSL_write(ssl, writebuf, writebuflen);
^
/usr/include/openssl/ssl.h:1495:6: note: 'SSL_write' declared here
int SSL_write(SSL *ssl,const void *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:186:9: warning: 'SSL_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
switch(SSL_get_error(ssl, w))
^
/usr/include/openssl/ssl.h:1501:5: note: 'SSL_get_error' declared here
int SSL_get_error(const SSL *s,int ret_code) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:290:10: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(r=SSL_shutdown(ssl)))
^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:294:6: warning: 'SSL_shutdown' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
r=SSL_shutdown(ssl);
^
/usr/include/openssl/ssl.h:1532:5: note: 'SSL_shutdown' declared here
int SSL_shutdown(SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
asyncio.c:326:3: warning: 'SSL_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_free(ssl);
^
/usr/include/openssl/ssl.h:1490:6: note: 'SSL_free' declared here
void SSL_free(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
10 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti attribs.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti auth_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti auth_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti autoupgrade_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti autoupgrade_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti backup_phase1_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti backup_phase2_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
backup_phase2_client.c:94:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'size_t *' (aka 'unsigned long *') [-Wnon-literal-null-conversion]
if(async_rw(NULL, NULL, '\0', '\0', NULL, &wlen))
^~~~
backup_phase2_client.c:108:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Final(checksum, &(infb->md5)))
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
2 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti backup_phase1_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti backup_phase2_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti backup_phase3_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti backup_phase4_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti base64.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti berrno.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti bfile.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti ca_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti ca_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
client.c:309:3: warning: 'SSL_CTX_set_session_id_context' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_CTX_set_session_id_context(ctx,
^
/usr/include/openssl/ssl.h:1478:5: note: 'SSL_CTX_set_session_id_context' declared here
int SSL_CTX_set_session_id_context(SSL_CTX *ctx,const unsigned char *sid_ctx,
^
client.c:319:12: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(ssl=SSL_new(ctx))
^
/usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here
SSL * SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:320:15: warning: 'BIO_new_socket' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| !(sbio=BIO_new_socket(rfd, BIO_NOCLOSE)))
^
/usr/include/openssl/bio.h:685:6: note: 'BIO_new_socket' declared here
BIO *BIO_new_socket(int sock, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:322:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:322:4: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:327:3: warning: 'SSL_set_bio' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_set_bio(ssl, sbio, sbio);
^
/usr/include/openssl/ssl.h:1375:6: note: 'SSL_set_bio' declared here
void SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:328:6: warning: 'SSL_connect' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(SSL_connect(ssl)<=0)
^
/usr/include/openssl/ssl.h:1492:6: note: 'SSL_connect' declared here
int SSL_connect(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:330:23: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
client.c:330:4: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
9 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti client_vss.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti conf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti counter.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti current_backups_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti delete_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti delete_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti dpth.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti extrameta.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti find.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti forkchild.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti handy.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
handy.c:253:6: warning: 'EVP_CipherUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!EVP_CipherUpdate(ctx, outbuf, outlen, inbuf, inlen))
^
/usr/include/openssl/evp.h:602:5: note: 'EVP_CipherUpdate' declared here
int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
^
handy.c:263:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(md5, outbuf, *outlen))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:277:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
const char *enc_iv="[lkd.$G<A3>"; // never change this.
^~~~
handy.c:286:2: warning: 'EVP_CIPHER_CTX_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
EVP_CIPHER_CTX_init(ctx);
^
/usr/include/openssl/evp.h:636:6: note: 'EVP_CIPHER_CTX_init' declared here
void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:287:30: warning: 'EVP_bf_cbc' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(EVP_CipherInit_ex(ctx, EVP_bf_cbc(), NULL, NULL, NULL, encrypt)))
^
/usr/include/openssl/evp.h:745:19: note: 'EVP_bf_cbc' declared here
const EVP_CIPHER *EVP_bf_cbc(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:287:7: warning: 'EVP_CipherInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(EVP_CipherInit_ex(ctx, EVP_bf_cbc(), NULL, NULL, NULL, encrypt)))
^
/usr/include/openssl/evp.h:599:5: note: 'EVP_CipherInit_ex' declared here
int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
handy.c:293:2: warning: 'EVP_CIPHER_CTX_set_key_length' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
EVP_CIPHER_CTX_set_key_length(ctx, strlen(encryption_password));
^
/usr/include/openssl/evp.h:640:5: note: 'EVP_CIPHER_CTX_set_key_length' declared here
int EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:296:6: warning: 'EVP_CipherInit_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!EVP_CipherInit_ex(ctx, NULL, NULL,
^
/usr/include/openssl/evp.h:599:5: note: 'EVP_CipherInit_ex' declared here
int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl,
^
handy.c:411:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Init(&md5))
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:473:19: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if(strm.avail_in<0)
~~~~~~~~~~~~~^~
handy.c:484:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, in, strm.avail_in))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:574:8: warning: 'EVP_CipherFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!EVP_CipherFinal_ex(enc_ctx, eoutbuf, &eoutlen))
^
/usr/include/openssl/evp.h:605:5: note: 'EVP_CipherFinal_ex' declared here
int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:583:15: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
else if(!MD5_Update(&md5, eoutbuf, eoutlen))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:597:3: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
EVP_CIPHER_CTX_cleanup(enc_ctx);
^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:604:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Final(checksum, &md5))
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:658:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Init(&md5))
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:678:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, metadata, s))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:771:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, buf, s))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:802:7: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Final(checksum, &md5))
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
handy.c:937:43: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if((wl=write(status_wfd, w, strlen(w)))<0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
20 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti incexc_recv.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti incexc_send.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti list_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti list_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti lock.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti log.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti msg.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
msg.c:238:5: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
EVP_CIPHER_CTX_cleanup(enc_ctx);
^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
msg.c:283:12: warning: 'EVP_CipherUpdate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!EVP_CipherUpdate(enc_ctx,
^
/usr/include/openssl/evp.h:602:5: note: 'EVP_CipherUpdate' declared here
int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,
^
msg.c:317:10: warning: 'EVP_CipherFinal_ex' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!EVP_CipherFinal_ex(enc_ctx,
^
/usr/include/openssl/evp.h:605:5: note: 'EVP_CipherFinal_ex' declared here
int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm, int *outl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
msg.c:372:3: warning: 'EVP_CIPHER_CTX_cleanup' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
EVP_CIPHER_CTX_cleanup(enc_ctx);
^
/usr/include/openssl/evp.h:637:5: note: 'EVP_CIPHER_CTX_cleanup' declared here
int EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
4 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti prepend.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti prog.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti regexp.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti restore_client.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti restore_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
restore_server.c:209:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Init(&md5))
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
restore_server.c:230:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, in, b))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
restore_server.c:256:8: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, in, b))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
restore_server.c:271:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Final(checksum, &md5))
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
4 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti rs_buf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
rs_buf.c:110:9: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Init(&(pf->md5)))
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
rs_buf.c:257:10: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&(fb->md5), fb->buf, len))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
rs_buf.c:286:10: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&(fb->md5), fb->buf, len))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
3 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti sbuf.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
server.c:1648:10: warning: if statement has empty body [-Wempty-body]
if(buf); free(buf); buf=NULL;
^
server.c:1648:10: note: put the semicolon on a separate line to silence this warning
server.c:1687:12: warning: 'BIO_new_socket' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(sbio=BIO_new_socket(*cfd, BIO_NOCLOSE))
^
/usr/include/openssl/bio.h:685:6: note: 'BIO_new_socket' declared here
BIO *BIO_new_socket(int sock, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
server.c:1688:13: warning: 'SSL_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| !(ssl=SSL_new(ctx)))
^
/usr/include/openssl/ssl.h:1481:7: note: 'SSL_new' declared here
SSL * SSL_new(SSL_CTX *ctx) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
server.c:1694:2: warning: 'SSL_set_bio' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_set_bio(ssl, sbio, sbio);
^
/usr/include/openssl/ssl.h:1375:6: note: 'SSL_set_bio' declared here
void SSL_set_bio(SSL *s, BIO *rbio,BIO *wbio) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
server.c:1700:2: warning: 'SSL_set_verify' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_set_verify(ssl, SSL_VERIFY_PEER
^
/usr/include/openssl/ssl.h:1384:6: note: 'SSL_set_verify' declared here
void SSL_set_verify(SSL *s, int mode,
^
server.c:1703:10: warning: 'SSL_accept' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if((ret=SSL_accept(ssl))<=0)
^
/usr/include/openssl/ssl.h:1491:6: note: 'SSL_accept' declared here
int SSL_accept(SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
server.c:1706:22: warning: 'ERR_get_error' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
^
/usr/include/openssl/err.h:266:15: note: 'ERR_get_error' declared here
unsigned long ERR_get_error(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
server.c:1706:3: warning: 'ERR_error_string_n' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));
^
/usr/include/openssl/err.h:280:6: note: 'ERR_error_string_n' declared here
void ERR_error_string_n(unsigned long e, char *buf, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
8 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti ssl.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
ssl.c:14:2: warning: 'BIO_printf' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_printf(bio_err, "%s", buf);
^
/usr/include/openssl/bio.h:707:5: note: 'BIO_printf' declared here
int BIO_printf(BIO *bio, const char *format, ...)
^
ssl.c:15:2: warning: 'ERR_print_errors' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ERR_print_errors(bio_err);
^
/usr/include/openssl/err.h:290:6: note: 'ERR_print_errors' declared here
void ERR_print_errors(BIO *bp) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:24:11: warning: 'BIO_new_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(bio=BIO_new_file(conf->ssl_dhfile, "r")))
^
/usr/include/openssl/bio.h:584:6: note: 'BIO_new_file' declared here
BIO *BIO_new_file(const char *filename, const char *mode) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:31:2: warning: 'BIO_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_free(bio);
^
/usr/include/openssl/bio.h:593:5: note: 'BIO_free' declared here
int BIO_free(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:32:5: warning: 'SSL_CTX_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(SSL_CTX_set_tmp_dh(ctx, ret)<0)
^
/usr/include/openssl/ssl.h:1319:2: note: expanded from macro 'SSL_CTX_set_tmp_dh'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)dh)
^
/usr/include/openssl/ssl.h:1498:6: note: 'SSL_CTX_ctrl' declared here
long SSL_CTX_ctrl(SSL_CTX *ctx,int cmd, long larg, void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:53:3: warning: 'SSL_library_init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_library_init();
^
/usr/include/openssl/ssl.h:1553:5: note: 'SSL_library_init' declared here
int SSL_library_init(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:54:3: warning: 'SSL_load_error_strings' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_load_error_strings();
^
/usr/include/openssl/ssl.h:1416:6: note: 'SSL_load_error_strings' declared here
void SSL_load_error_strings(void ) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:57:11: warning: 'BIO_new_fp' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
bio_err=BIO_new_fp(stderr, BIO_NOCLOSE);
^
/usr/include/openssl/bio.h:585:6: note: 'BIO_new_fp' declared here
BIO *BIO_new_fp(FILE *stream, int close_flag) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:68:8: warning: 'SSL_CTX_use_certificate_chain_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
&& !SSL_CTX_use_certificate_chain_file(ctx, conf->ssl_cert))
^
/usr/include/openssl/ssl.h:1403:5: note: 'SSL_CTX_use_certificate_chain_file' declared here
int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* PEM type */
^
ssl.c:75:2: warning: 'SSL_CTX_set_default_passwd_cb' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_CTX_set_default_passwd_cb(ctx, password_cb);
^
/usr/include/openssl/ssl.h:1472:6: note: 'SSL_CTX_set_default_passwd_cb' declared here
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:84:8: warning: 'SSL_CTX_use_PrivateKey_file' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
&& !SSL_CTX_use_PrivateKey_file(ctx,ssl_key,SSL_FILETYPE_PEM))
^
/usr/include/openssl/ssl.h:1401:5: note: 'SSL_CTX_use_PrivateKey_file' declared here
int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:92:8: warning: 'SSL_CTX_load_verify_locations' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
&& !SSL_CTX_load_verify_locations(ctx, conf->ssl_cert_ca, 0))
^
/usr/include/openssl/ssl.h:1571:5: note: 'SSL_CTX_load_verify_locations' declared here
int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,
^
ssl.c:108:21: warning: 'SSLv23_method' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
meth=(SSL_METHOD *)SSLv23_method();
^
/usr/include/openssl/ssl.h:1515:13: note: 'SSLv23_method' declared here
SSL_METHOD *SSLv23_method(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; /* SSLv3 but can rollback to v2 */
^
ssl.c:109:17: warning: 'SSL_CTX_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ctx=(SSL_CTX *)SSL_CTX_new(meth);
^
/usr/include/openssl/ssl.h:1346:10: note: 'SSL_CTX_new' declared here
SSL_CTX *SSL_CTX_new(SSL_METHOD *meth) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:114:3: warning: 'SSL_CTX_set_cipher_list' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_CTX_set_cipher_list(ctx, conf->ssl_ciphers);
^
/usr/include/openssl/ssl.h:1345:5: note: 'SSL_CTX_set_cipher_list' declared here
int SSL_CTX_set_cipher_list(SSL_CTX *,const char *str) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:122:2: warning: 'SSL_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_CTX_free(ctx);
^
/usr/include/openssl/ssl.h:1347:6: note: 'SSL_CTX_free' declared here
void SSL_CTX_free(SSL_CTX *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:155:6: warning: 'X509_NAME_entry_count' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
n = X509_NAME_entry_count (x509);
^
/usr/include/openssl/x509.h:1097:7: note: 'X509_NAME_entry_count' declared here
int X509_NAME_entry_count(X509_NAME *name) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:158:12: warning: 'X509_NAME_get_entry' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(ent=X509_NAME_get_entry (x509, i))
^
/usr/include/openssl/x509.h:1108:18: note: 'X509_NAME_get_entry' declared here
X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:159:13: warning: 'X509_NAME_ENTRY_get_object' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| !(fn=X509_NAME_ENTRY_get_object(ent))
^
/usr/include/openssl/x509.h:1129:15: note: 'X509_NAME_ENTRY_get_object' declared here
ASN1_OBJECT * X509_NAME_ENTRY_get_object(X509_NAME_ENTRY *ne) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:160:14: warning: 'X509_NAME_ENTRY_get_data' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| !(val=X509_NAME_ENTRY_get_data(ent))
^
/usr/include/openssl/x509.h:1130:15: note: 'X509_NAME_ENTRY_get_data' declared here
ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:161:16: warning: 'OBJ_obj2nid' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| (fn_nid=OBJ_obj2nid(fn))==NID_undef
^
/usr/include/openssl/objects.h:1009:6: note: 'OBJ_obj2nid' declared here
int OBJ_obj2nid(const ASN1_OBJECT *o) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:162:17: warning: 'OBJ_nid2sn' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| !(objbuf=OBJ_nid2sn(fn_nid)))
^
/usr/include/openssl/objects.h:1008:14: note: 'OBJ_nid2sn' declared here
const char * OBJ_nid2sn(int n) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:165:6: warning: 'ASN1_STRING_to_UTF8' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(ASN1_STRING_to_UTF8(&buf, val)<=0) continue;
^
/usr/include/openssl/asn1.h:981:5: note: 'ASN1_STRING_to_UTF8' declared here
int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:178:3: warning: 'CRYPTO_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
OPENSSL_free (buf);
^
/usr/include/openssl/crypto.h:375:28: note: expanded from macro 'OPENSSL_free'
#define OPENSSL_free(addr) CRYPTO_free(addr)
^
/usr/include/openssl/crypto.h:480:6: note: 'CRYPTO_free' declared here
void CRYPTO_free(void *) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:188:23: warning: 'BIO_s_mem' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(bio_out=BIO_new(BIO_s_mem())))
^
/usr/include/openssl/bio.h:626:13: note: 'BIO_s_mem' declared here
BIO_METHOD *BIO_s_mem(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:188:15: warning: 'BIO_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(bio_out=BIO_new(BIO_s_mem())))
^
/usr/include/openssl/bio.h:591:7: note: 'BIO_new' declared here
BIO * BIO_new(BIO_METHOD *type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:193:2: warning: 'ASN1_TIME_print' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
ASN1_TIME_print(bio_out, tm);
^
/usr/include/openssl/asn1.h:1008:5: note: 'ASN1_TIME_print' declared here
int ASN1_TIME_print(BIO *fp,ASN1_TIME *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:194:2: warning: 'BIO_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_get_mem_ptr(bio_out, &bptr);
^
/usr/include/openssl/bio.h:506:31: note: expanded from macro 'BIO_get_mem_ptr'
#define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
^
/usr/include/openssl/bio.h:600:6: note: 'BIO_ctrl' declared here
long BIO_ctrl(BIO *bp,int cmd,long larg,void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:195:2: warning: 'BIO_gets' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_gets(bio_out, tmpbuf, sizeof(tmpbuf)-1);
^
/usr/include/openssl/bio.h:596:5: note: 'BIO_gets' declared here
int BIO_gets(BIO *bp,char *buf, int size) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:196:2: warning: 'BIO_free_all' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_free_all(bio_out);
^
/usr/include/openssl/bio.h:606:6: note: 'BIO_free_all' declared here
void BIO_free_all(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:207:23: warning: 'BIO_s_mem' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(bio_out=BIO_new(BIO_s_mem())))
^
/usr/include/openssl/bio.h:626:13: note: 'BIO_s_mem' declared here
BIO_METHOD *BIO_s_mem(void) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:207:15: warning: 'BIO_new' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(bio_out=BIO_new(BIO_s_mem())))
^
/usr/include/openssl/bio.h:591:7: note: 'BIO_new' declared here
BIO * BIO_new(BIO_METHOD *type) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:212:2: warning: 'i2a_ASN1_INTEGER' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
i2a_ASN1_INTEGER(bio_out, i);
^
/usr/include/openssl/asn1.h:884:5: note: 'i2a_ASN1_INTEGER' declared here
int i2a_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:213:2: warning: 'BIO_ctrl' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_get_mem_ptr(bio_out, &bptr);
^
/usr/include/openssl/bio.h:506:31: note: expanded from macro 'BIO_get_mem_ptr'
#define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
^
/usr/include/openssl/bio.h:600:6: note: 'BIO_ctrl' declared here
long BIO_ctrl(BIO *bp,int cmd,long larg,void *parg) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:214:2: warning: 'BIO_gets' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_gets(bio_out, tmpbuf, sizeof(tmpbuf)-1);
^
/usr/include/openssl/bio.h:596:5: note: 'BIO_gets' declared here
int BIO_gets(BIO *bp,char *buf, int size) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:215:2: warning: 'BIO_free_all' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
BIO_free_all(bio_out);
^
/usr/include/openssl/bio.h:606:6: note: 'BIO_free_all' declared here
void BIO_free_all(BIO *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:233:26: warning: 'SSL_get_current_cipher' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_CIPHER_get_version(SSL_get_current_cipher(ssl)),
^
/usr/include/openssl/ssl.h:1357:13: note: 'SSL_get_current_cipher' declared here
SSL_CIPHER *SSL_get_current_cipher(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:233:3: warning: 'SSL_CIPHER_get_version' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_CIPHER_get_version(SSL_get_current_cipher(ssl)),
^
/usr/include/openssl/ssl.h:1359:8: note: 'SSL_CIPHER_get_version' declared here
char * SSL_CIPHER_get_version(const SSL_CIPHER *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:234:3: warning: 'SSL_get_current_cipher' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_get_cipher_name(ssl));
^
/usr/include/openssl/ssl.h:1160:23: note: expanded from macro 'SSL_get_cipher_name'
SSL_CIPHER_get_name(SSL_get_current_cipher(s))
^
/usr/include/openssl/ssl.h:1357:13: note: 'SSL_get_current_cipher' declared here
SSL_CIPHER *SSL_get_current_cipher(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:234:3: warning: 'SSL_CIPHER_get_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SSL_get_cipher_name(ssl));
^
/usr/include/openssl/ssl.h:1160:3: note: expanded from macro 'SSL_get_cipher_name'
SSL_CIPHER_get_name(SSL_get_current_cipher(s))
^
/usr/include/openssl/ssl.h:1360:14: note: 'SSL_CIPHER_get_name' declared here
const char * SSL_CIPHER_get_name(const SSL_CIPHER *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:235:12: warning: 'SSL_get_peer_certificate' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!(peer=SSL_get_peer_certificate(ssl)))
^
/usr/include/openssl/ssl.h:1450:8: note: 'SSL_get_peer_certificate' declared here
X509 * SSL_get_peer_certificate(const SSL *s) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:240:5: warning: 'SSL_get_verify_result' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(SSL_get_verify_result(ssl)!=X509_V_OK)
^
/usr/include/openssl/ssl.h:1584:6: note: 'SSL_get_verify_result' declared here
long SSL_get_verify_result(const SSL *ssl) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:246:28: warning: 'X509_get_subject_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
X509_NAME_get_text_by_NID(X509_get_subject_name(peer),
^
/usr/include/openssl/x509.h:1013:13: note: 'X509_get_subject_name' declared here
X509_NAME * X509_get_subject_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:246:2: warning: 'X509_NAME_get_text_by_NID' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
X509_NAME_get_text_by_NID(X509_get_subject_name(peer),
^
/usr/include/openssl/x509.h:1098:7: note: 'X509_NAME_get_text_by_NID' declared here
int X509_NAME_get_text_by_NID(X509_NAME *name, int nid,
^
ssl.c:255:17: warning: 'X509_get_subject_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(setenv_x509(X509_get_subject_name(peer), "PEER")
^
/usr/include/openssl/x509.h:1013:13: note: 'X509_get_subject_name' declared here
X509_NAME * X509_get_subject_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:256:19: warning: 'X509_get_issuer_name' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
|| setenv_x509(X509_get_issuer_name(peer), "ISSUER"))
^
/usr/include/openssl/x509.h:1011:13: note: 'X509_get_issuer_name' declared here
X509_NAME * X509_get_issuer_name(X509 *a) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
ssl.c:263:30: warning: 'X509_get_serialNumber' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(setenv_x509_serialnumber(X509_get_serialNumber(peer),
^
/usr/include/openssl/x509.h:1009:16: note: 'X509_get_serialNumber' declared here
ASN1_INTEGER * X509_get_serialNumber(X509 *x) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
47 warnings generated.
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti status_client_ncurses.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti status_server.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti strlist.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti xattr.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti zlibio.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking burp ...
/tmp/burp-1.4.16/libtool --silent --tag=CXX --mode=link g++ -o burp acl.o asyncio.o attribs.o auth_server.o auth_client.o autoupgrade_client.o autoupgrade_server.o backup_phase1_client.o backup_phase2_client.o backup_phase1_server.o backup_phase2_server.o backup_phase3_server.o backup_phase4_server.o base64.o berrno.o bfile.o ca_client.o ca_server.o client.o client_vss.o conf.o counter.o current_backups_server.o delete_client.o delete_server.o dpth.o extrameta.o find.o forkchild.o handy.o incexc_recv.o incexc_send.o list_client.o list_server.o lock.o log.o msg.o prepend.o prog.o regexp.o restore_client.o restore_server.o rs_buf.o sbuf.o server.o ssl.o status_client_ncurses.o status_server.o strlist.o xattr.o zlibio.o \
-lm \
-lssl -lcrypto -lrsync -lz -lncurses
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti bedup.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
bedup.c:180:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Init(&md5))
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
bedup.c:188:6: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, buf, got))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
bedup.c:194:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Final(checksum, &md5))
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
bedup.c:223:6: warning: 'MD5_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Init(&md5))
^
/usr/include/openssl/md5.h:113:5: note: 'MD5_Init' declared here
int MD5_Init(MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
bedup.c:231:7: warning: 'MD5_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Update(&md5, buf, s))
^
/usr/include/openssl/md5.h:114:5: note: 'MD5_Update' declared here
int MD5_Update(MD5_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
bedup.c:239:6: warning: 'MD5_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
if(!MD5_Final(checksum, &md5))
^
/usr/include/openssl/md5.h:115:5: note: 'MD5_Final' declared here
int MD5_Final(unsigned char *md, MD5_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
6 warnings generated.
Linking bedup ...
/tmp/burp-1.4.16/libtool --silent --tag=CXX --mode=link g++ -o bedup bedup.o conf.o lock.o log.o prepend.o regexp.o strlist.o \
-lm \
-lssl -lcrypto -lrsync -lz -lncurses
g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti vss_strip.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
Linking vss_strip ...
/tmp/burp-1.4.16/libtool --silent --tag=CXX --mode=link g++ -o vss_strip vss_strip.o
==== Make of burp is good ====
==>Entering directory /tmp/burp-1.4.16/manpages
make[1]: Nothing to be done for `all'.
OK, thanks. There are a lot of warnings because it is using g++ to compile c code. I will try to fix this in burp-2, and live with it in burp-1.4.x, because it will probably need changes that touch a lot of files and I only want to do it once.
Here are the non-SSL warnings. I will fix them all in 1.4.x except the C/C++ ones.
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
backup_phase2_client.c:94:27: warning: expression which evaluates to zero treated as a null pointer constant of type 'size_t ' (aka 'unsigned long ') [-Wnon-literal-null-conversion]
if(async_rw(NULL, NULL, '\0', '\0', NULL, &wlen))
^~~~
handy.c:277:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
const char *enc_iv="[lkd.$G
handy.c:468:19: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if(strm.avail_in<0)
handy.c:933:43: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if((wl=write(status_wfd, w, strlen(w)))<0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
server.c:1606:10: warning: if statement has empty body [-Wempty-body]
if(buf); free(buf); buf=NULL;
^
server.c:1606:10: note: put the semicolon on a separate line to silence this warning
All of those now fixed on master and 1.4-master, except: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
After fighting to make gcc work for burp on git master instead of g++ for a couple of days, I am giving up for now. All the other non-SSL warnings are fixed.
Hello,
I am attaching the compilation report of Burp 1.3.48 on OS X Mavericks. The warnings may be interesting for you.