GitHub user zwoop opened an issue:
https://github.com/apache/trafficserver/issues/1384
Warnings when compiling against OpenSSL 1.1.0d
```
SSLUtils.cc: In function âvoid SSLInitializeLibrary()â:
SSLUtils.cc:863:57: warning: statement has no effect [-Wunused-value]
CRYPTO_THREADID_set_callback(SSL_pthreads_thread_id);
^
In file included from ../../lib/ts/SimpleTokenizer.h:30:0,
from SSLUtils.cc:23:
SSLUtils.cc: In function âchar* asn1_strdup(ASN1_STRING*)â:
SSLUtils.cc:1344:36: warning: âunsigned char*
ASN1_STRING_data(ASN1_STRING*)â is deprecated [-Wdeprecated-declarations]
return ats_strndup((const char *)ASN1_STRING_data(s),
ASN1_STRING_length(s));
^
../../lib/ts/ink_memory.h:123:37: note: in definition of macro
âats_strndupâ
#define ats_strndup(p, n) _xstrdup((p), n, nullptr)
^
In file included from /opt/openssl/include/openssl/bn.h:31:0,
from /opt/openssl/include/openssl/asn1.h:24,
from /opt/openssl/include/openssl/objects.h:916,
from /opt/openssl/include/openssl/evp.h:27,
from /opt/openssl/include/openssl/x509.h:23,
from /opt/openssl/include/openssl/ssl.h:50,
from P_SSLNetVConnection.h:41,
from P_Net.h:106,
from SSLUtils.cc:26:
/opt/openssl/include/openssl/asn1.h:553:35: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
/opt/openssl/include/openssl/opensslconf.h:102:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/opt/openssl/include/openssl/asn1.h:553:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
In file included from ../../lib/ts/SimpleTokenizer.h:30:0,
from SSLUtils.cc:23:
SSLUtils.cc:1344:36: warning: âunsigned char*
ASN1_STRING_data(ASN1_STRING*)â is deprecated [-Wdeprecated-declarations]
return ats_strndup((const char *)ASN1_STRING_data(s),
ASN1_STRING_length(s));
^
../../lib/ts/ink_memory.h:123:37: note: in definition of macro
âats_strndupâ
#define ats_strndup(p, n) _xstrdup((p), n, nullptr)
^
In file included from /opt/openssl/include/openssl/bn.h:31:0,
from /opt/openssl/include/openssl/asn1.h:24,
from /opt/openssl/include/openssl/objects.h:916,
from /opt/openssl/include/openssl/evp.h:27,
from /opt/openssl/include/openssl/x509.h:23,
from /opt/openssl/include/openssl/ssl.h:50,
from P_SSLNetVConnection.h:41,
from P_Net.h:106,
from SSLUtils.cc:26:
/opt/openssl/include/openssl/asn1.h:553:35: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
/opt/openssl/include/openssl/opensslconf.h:102:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/opt/openssl/include/openssl/asn1.h:553:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
In file included from ../../lib/ts/SimpleTokenizer.h:30:0,
from SSLUtils.cc:23:
SSLUtils.cc:1344:54: warning: âunsigned char*
ASN1_STRING_data(ASN1_STRING*)â is deprecated [-Wdeprecated-declarations]
return ats_strndup((const char *)ASN1_STRING_data(s),
ASN1_STRING_length(s));
^
../../lib/ts/ink_memory.h:123:37: note: in definition of macro
âats_strndupâ
#define ats_strndup(p, n) _xstrdup((p), n, nullptr)
^
In file included from /opt/openssl/include/openssl/bn.h:31:0,
from /opt/openssl/include/openssl/asn1.h:24,
from /opt/openssl/include/openssl/objects.h:916,
from /opt/openssl/include/openssl/evp.h:27,
from /opt/openssl/include/openssl/x509.h:23,
from /opt/openssl/include/openssl/ssl.h:50,
from P_SSLNetVConnection.h:41,
from P_Net.h:106,
from SSLUtils.cc:26:
/opt/openssl/include/openssl/asn1.h:553:35: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
/opt/openssl/include/openssl/opensslconf.h:102:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/opt/openssl/include/openssl/asn1.h:553:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
SSLUtils.cc: In function âint ssl_callback_session_ticket(SSL*, unsigned
char*, unsigned char*, EVP_CIPHER_CTX*, HMAC_CTX*, int)â:
SSLUtils.cc:2076:5: warning: âint RAND_pseudo_bytes(unsigned char*,
int)â is deprecated [-Wdeprecated-declarations]
RAND_pseudo_bytes(iv, EVP_MAX_IV_LENGTH);
^
In file included from P_SSLUtils.h:33:0,
from SSLSessionCache.h:32,
from P_SSLConfig.h:35,
from P_SSLNetProcessor.h:43,
from P_Net.h:107,
from SSLUtils.cc:26:
/opt/openssl/include/openssl/rand.h:47:24: note: declared here
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
/opt/openssl/include/openssl/opensslconf.h:102:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/opt/openssl/include/openssl/rand.h:47:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
SSLUtils.cc:2076:5: warning: âint RAND_pseudo_bytes(unsigned char*,
int)â is deprecated [-Wdeprecated-declarations]
RAND_pseudo_bytes(iv, EVP_MAX_IV_LENGTH);
^
In file included from P_SSLUtils.h:33:0,
from SSLSessionCache.h:32,
from P_SSLConfig.h:35,
from P_SSLNetProcessor.h:43,
from P_Net.h:107,
from SSLUtils.cc:26:
/opt/openssl/include/openssl/rand.h:47:24: note: declared here
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
/opt/openssl/include/openssl/opensslconf.h:102:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/opt/openssl/include/openssl/rand.h:47:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
SSLUtils.cc:2076:44: warning: âint RAND_pseudo_bytes(unsigned char*,
int)â is deprecated [-Wdeprecated-declarations]
RAND_pseudo_bytes(iv, EVP_MAX_IV_LENGTH);
^
In file included from P_SSLUtils.h:33:0,
from SSLSessionCache.h:32,
from P_SSLConfig.h:35,
from P_SSLNetProcessor.h:43,
from P_Net.h:107,
from SSLUtils.cc:26:
/opt/openssl/include/openssl/rand.h:47:24: note: declared here
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
/opt/openssl/include/openssl/opensslconf.h:102:35: note: in definition of
macro âDECLARE_DEPRECATEDâ
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
/opt/openssl/include/openssl/rand.h:47:1: note: in expansion of macro
âDEPRECATEDIN_1_1_0â
DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
^
SSLUtils.cc: At global scope:
SSLUtils.cc:147:1: warning: âvoid
SSL_pthreads_thread_id(CRYPTO_THREADID*)â defined but not used
[-Wunused-function]
SSL_pthreads_thread_id(CRYPTO_THREADID *id)
^
SSLUtils.cc:155:1: warning: âvoid SSL_locking_callback(int, int, const
char*, int)â defined but not used [-Wunused-function]
SSL_locking_callback(int mode, int type, const char *file, int line)
^
```
There might be others, but that is a good start.
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---