Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2473

Deprecation warnings when compiling Proton with OpenSSL 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.37.0
    • None
    • build, proton-c
    • None

    Description

      OpenSSL 3 has deprecated some parts of the API

      Workaround: -Wno-error=deprecated-declarations in CFLAGS, or -DENABLE_WARNING_ERROR=OFF for CMake

      https://app.travis-ci.com/github/apache/qpid-dispatch/jobs/550747365#L1052

      [ 32%] Building C object c/CMakeFiles/qpid-proton-core-objects.dir/src/ssl/openssl.c.o
      /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:398:12: warning: 
            'DH_new' is deprecated [-Wdeprecated-declarations]
        DH *dh = DH_new();
                 ^
      /opt/local/libexec/openssl3/include/openssl/dh.h:199:1: note: 'DH_new' has been
            explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
            macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
            macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:406:11: warning: 
            'DH_set0_pqg' is deprecated [-Wdeprecated-declarations]
            || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
                ^
      /opt/local/libexec/openssl3/include/openssl/dh.h:255:1: note: 'DH_set0_pqg' has
            been explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
            macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
            macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:407:5: warning: 
            'DH_free' is deprecated [-Wdeprecated-declarations]
          DH_free(dh);
          ^
      /opt/local/libexec/openssl3/include/openssl/dh.h:200:1: note: 'DH_free' has been
            explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
            macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
            macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:548:5: warning: 
            'DH_free' is deprecated [-Wdeprecated-declarations]
          DH_free(dh);
          ^
      /opt/local/libexec/openssl3/include/openssl/dh.h:200:1: note: 'DH_free' has been
            explicitly marked deprecated here
      OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
            macro 'OSSL_DEPRECATEDIN_3_0'
      #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                      ^
      /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
            macro 'OSSL_DEPRECATED'
      #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                         ^
      4 warnings generated.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: