Bug 12652 - source4/lib/tls/tls.c
Summary: source4/lib/tls/tls.c
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.8.0
Hardware: x86 Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-11 17:36 UTC by Ruga
Modified: 2020-01-04 00:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruga 2017-03-11 17:36:51 UTC
[1304/3257] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c:42:2: warning: 'gnutls_certificate_credentials' is deprecated [-Wdeprecated-declarations]
        gnutls_certificate_credentials x509_cred;
        ^
/usr/local/include/gnutls/compat.h:95:5: note: 'gnutls_certificate_credentials' has been explicitly marked deprecated here
    gnutls_certificate_credentials _GNUTLS_GCC_ATTR_DEPRECATED;
    ^
../source4/lib/tls/tls.c:43:2: warning: 'gnutls_dh_params' is deprecated [-Wdeprecated-declarations]
        gnutls_dh_params dh_params;
        ^
/usr/local/include/gnutls/compat.h:104:28: note: 'gnutls_dh_params' has been explicitly marked deprecated here
typedef gnutls_dh_params_t gnutls_dh_params _GNUTLS_GCC_ATTR_DEPRECATED;
                           ^
../source4/lib/tls/tls.c:55:2: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations]
        gnutls_session session;
        ^
/usr/local/include/gnutls/compat.h:78:26: note: 'gnutls_session' has been explicitly marked deprecated here
typedef gnutls_session_t gnutls_session _GNUTLS_GCC_ATTR_DEPRECATED;
                         ^
../source4/lib/tls/tls.c:62:2: warning: 'gnutls_certificate_credentials' is deprecated [-Wdeprecated-declarations]
        gnutls_certificate_credentials xcred;
        ^
/usr/local/include/gnutls/compat.h:95:5: note: 'gnutls_certificate_credentials' has been explicitly marked deprecated here
    gnutls_certificate_credentials _GNUTLS_GCC_ATTR_DEPRECATED;
    ^
../source4/lib/tls/tls.c:114:25: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
static ssize_t tls_pull(gnutls_transport_ptr ptr, void *buf, size_t size)
                        ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
../source4/lib/tls/tls.c:153:25: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
static ssize_t tls_push(gnutls_transport_ptr ptr, const void *buf, size_t size)
                        ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
../source4/lib/tls/tls.c:548:42: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
        gnutls_transport_set_ptr(tls->session, (gnutls_transport_ptr)tls);
                                                ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
7 warnings generated.
[1305/3257] Compiling source4/lib/tls/tlscert.c
../source4/lib/tls/tlscert.c:46:2: warning: 'gnutls_x509_crt' is deprecated [-Wdeprecated-declarations]
        gnutls_x509_crt cacrt, crt;
        ^
/usr/local/include/gnutls/compat.h:89:27: note: 'gnutls_x509_crt' has been explicitly marked deprecated here
typedef gnutls_x509_crt_t gnutls_x509_crt _GNUTLS_GCC_ATTR_DEPRECATED;
                          ^
../source4/lib/tls/tlscert.c:47:2: warning: 'gnutls_x509_privkey' is deprecated [-Wdeprecated-declarations]
        gnutls_x509_privkey key, cakey;
        ^
/usr/local/include/gnutls/compat.h:90:31: note: 'gnutls_x509_privkey' has been explicitly marked deprecated here
typedef gnutls_x509_privkey_t gnutls_x509_privkey
                              ^
2 warnings generated.
[1306/3257] Compiling source4/lib/tls/tls_tstream.c
../source4/lib/tls/tls_tstream.c:88:2: warning: 'gnutls_session' is deprecated [-Wdeprecated-declarations]
        gnutls_session tls_session;
        ^
/usr/local/include/gnutls/compat.h:78:26: note: 'gnutls_session' has been explicitly marked deprecated here
typedef gnutls_session_t gnutls_session _GNUTLS_GCC_ATTR_DEPRECATED;
                         ^
../source4/lib/tls/tls_tstream.c:193:42: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
static ssize_t tstream_tls_push_function(gnutls_transport_ptr ptr,
                                         ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
../source4/lib/tls/tls_tstream.c:332:42: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
static ssize_t tstream_tls_pull_function(gnutls_transport_ptr ptr,
                                         ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
../source4/lib/tls/tls_tstream.c:914:2: warning: 'gnutls_certificate_credentials' is deprecated [-Wdeprecated-declarations]
        gnutls_certificate_credentials x509_cred;
        ^
/usr/local/include/gnutls/compat.h:95:5: note: 'gnutls_certificate_credentials' has been explicitly marked deprecated here
    gnutls_certificate_credentials _GNUTLS_GCC_ATTR_DEPRECATED;
    ^
../source4/lib/tls/tls_tstream.c:915:2: warning: 'gnutls_dh_params' is deprecated [-Wdeprecated-declarations]
        gnutls_dh_params dh_params;
        ^
/usr/local/include/gnutls/compat.h:104:28: note: 'gnutls_dh_params' has been explicitly marked deprecated here
typedef gnutls_dh_params_t gnutls_dh_params _GNUTLS_GCC_ATTR_DEPRECATED;
                           ^
../source4/lib/tls/tls_tstream.c:1118:47: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
        gnutls_transport_set_ptr(tlss->tls_session, (gnutls_transport_ptr)state->tls_stream);
                                                     ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
../source4/lib/tls/tls_tstream.c:1393:47: warning: 'gnutls_transport_ptr' is deprecated [-Wdeprecated-declarations]
        gnutls_transport_set_ptr(tlss->tls_session, (gnutls_transport_ptr)state->tls_stream);
                                                     ^
/usr/local/include/gnutls/compat.h:113:32: note: 'gnutls_transport_ptr' has been explicitly marked deprecated here
typedef gnutls_transport_ptr_t gnutls_transport_ptr
                               ^
7 warnings generated.
Comment 1 Ruga 2017-03-11 17:37:22 UTC
gnutls: stable 3.5.10
Comment 2 Ruga 2018-04-25 10:04:09 UTC
[1250/2913] Compiling source4/lib/tls/tlscert.c
../source4/lib/tls/tlscert.c:46:2: warning: 'gnutls_x509_crt' is deprecated [-Wdeprecated-declarations]
        gnutls_x509_crt cacrt, crt;
        ^
/usr/local/include/gnutls/compat.h:89:43: note: 'gnutls_x509_crt' has been explicitly marked deprecated here
typedef gnutls_x509_crt_t gnutls_x509_crt _GNUTLS_GCC_ATTR_DEPRECATED;
                                          ^
/usr/local/include/gnutls/compat.h:40:53: note: expanded from macro '_GNUTLS_GCC_ATTR_DEPRECATED'
#define _GNUTLS_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
                                                    ^
../source4/lib/tls/tlscert.c:47:2: warning: 'gnutls_x509_privkey' is deprecated [-Wdeprecated-declarations]
        gnutls_x509_privkey key, cakey;
        ^
/usr/local/include/gnutls/compat.h:91:5: note: 'gnutls_x509_privkey' has been explicitly marked deprecated here
    _GNUTLS_GCC_ATTR_DEPRECATED;
    ^
/usr/local/include/gnutls/compat.h:40:53: note: expanded from macro '_GNUTLS_GCC_ATTR_DEPRECATED'
#define _GNUTLS_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
                                                    ^
Comment 3 Björn Jacke 2020-01-04 00:16:13 UTC
the summary of this bug is a example for how a summary should not look like ;). The reported deprecation warnings are fixed with 71816984c31cd1a392355afdbfdadb0da2d05765 in master.