s4:lib:tls: Fix cert and privkey types
authorAndreas Schneider <asn@samba.org>
Mon, 18 Nov 2019 15:33:23 +0000 (16:33 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Nov 2019 04:48:29 +0000 (04:48 +0000)
../../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 <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/tls/tlscert.c

index f5e9a1f2d39ce1ebee3f6f363460fc8c780d090d..9379ab094d1bd6e0bc53a8dfadda3305296fbffc 100644 (file)
@@ -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];