You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by zwoop <gi...@git.apache.org> on 2017/01/27 21:05:17 UTC

[GitHub] trafficserver issue #1384: Warnings when compiling against OpenSSL 1.1.0d

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 \u2018void SSLInitializeLibrary()\u2019:
    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 \u2018char* asn1_strdup(ASN1_STRING*)\u2019:
    SSLUtils.cc:1344:36: warning: \u2018unsigned char* ASN1_STRING_data(ASN1_STRING*)\u2019 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 \u2018ats_strndup\u2019
     #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 \u2018DECLARE_DEPRECATED\u2019
     # define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                       ^
    /opt/openssl/include/openssl/asn1.h:553:1: note: in expansion of macro \u2018DEPRECATEDIN_1_1_0\u2019
     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: \u2018unsigned char* ASN1_STRING_data(ASN1_STRING*)\u2019 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 \u2018ats_strndup\u2019
     #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 \u2018DECLARE_DEPRECATED\u2019
     # define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                       ^
    /opt/openssl/include/openssl/asn1.h:553:1: note: in expansion of macro \u2018DEPRECATEDIN_1_1_0\u2019
     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: \u2018unsigned char* ASN1_STRING_data(ASN1_STRING*)\u2019 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 \u2018ats_strndup\u2019
     #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 \u2018DECLARE_DEPRECATED\u2019
     # define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                       ^
    /opt/openssl/include/openssl/asn1.h:553:1: note: in expansion of macro \u2018DEPRECATEDIN_1_1_0\u2019
     DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
     ^
    SSLUtils.cc: In function \u2018int ssl_callback_session_ticket(SSL*, unsigned char*, unsigned char*, EVP_CIPHER_CTX*, HMAC_CTX*, int)\u2019:
    SSLUtils.cc:2076:5: warning: \u2018int RAND_pseudo_bytes(unsigned char*, int)\u2019 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 \u2018DECLARE_DEPRECATED\u2019
     # define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                       ^
    /opt/openssl/include/openssl/rand.h:47:1: note: in expansion of macro \u2018DEPRECATEDIN_1_1_0\u2019
     DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
     ^
    SSLUtils.cc:2076:5: warning: \u2018int RAND_pseudo_bytes(unsigned char*, int)\u2019 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 \u2018DECLARE_DEPRECATED\u2019
     # define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                       ^
    /opt/openssl/include/openssl/rand.h:47:1: note: in expansion of macro \u2018DEPRECATEDIN_1_1_0\u2019
     DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
     ^
    SSLUtils.cc:2076:44: warning: \u2018int RAND_pseudo_bytes(unsigned char*, int)\u2019 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 \u2018DECLARE_DEPRECATED\u2019
     # define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));
                                       ^
    /opt/openssl/include/openssl/rand.h:47:1: note: in expansion of macro \u2018DEPRECATEDIN_1_1_0\u2019
     DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
     ^
    SSLUtils.cc: At global scope:
    SSLUtils.cc:147:1: warning: \u2018void SSL_pthreads_thread_id(CRYPTO_THREADID*)\u2019 defined but not used [-Wunused-function]
     SSL_pthreads_thread_id(CRYPTO_THREADID *id)
     ^
    SSLUtils.cc:155:1: warning: \u2018void SSL_locking_callback(int, int, const char*, int)\u2019 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #1384: Warnings when compiling against OpenSSL 1.1.0d

Posted by jablko <gi...@git.apache.org>.
Github user jablko closed the issue at:

    https://github.com/apache/trafficserver/issues/1384


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---