From: Andreas Schneider Date: Mon, 18 Nov 2019 15:33:23 +0000 (+0100) Subject: s4:lib:tls: Fix cert and privkey types X-Git-Tag: ldb-2.1.0~693 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71816984c31cd1a392355afdbfdadb0da2d05765;p=thirdparty%2Fsamba.git s4:lib:tls: Fix cert and privkey types ../../source4/lib/tls/tlscert.c:42:2: warning: ‘gnutls_x509_crt’ is deprecated [-Wdeprecated-declarations] 42 | gnutls_x509_crt cacrt, crt; | ^~~~~~~~~~~~~~~ ../../source4/lib/tls/tlscert.c:43:2: warning: ‘gnutls_x509_privkey’ is deprecated [-Wdeprecated-declarations] 43 | gnutls_x509_privkey key, cakey; | ^~~~~~~~~~~~~~~~~~~ Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source4/lib/tls/tlscert.c b/source4/lib/tls/tlscert.c index f5e9a1f2d39..9379ab094d1 100644 --- a/source4/lib/tls/tlscert.c +++ b/source4/lib/tls/tlscert.c @@ -39,8 +39,8 @@ void tls_cert_generate(TALLOC_CTX *mem_ctx, const char *keyfile, const char *certfile, const char *cafile) { - gnutls_x509_crt cacrt, crt; - gnutls_x509_privkey key, cakey; + gnutls_x509_crt_t cacrt, crt; + gnutls_x509_privkey_t key, cakey; uint32_t serial = (uint32_t)time(NULL); unsigned char keyid[100]; char buf[4096];