libnm-util: fix build with --with-crypto=gnutls

The non-"_t"-suffixed type names in gnutls have been deprecated since
1.x, and in recent versions will trigger deprecation warnings. Fix by
using "gnutls_datum_t" instead of "gnutls_datum".
This commit is contained in:
Dan Winship 2014-06-26 09:32:54 -04:00
parent 98bc1c8cf9
commit 09da178639

View file

@ -347,7 +347,7 @@ crypto_verify_cert (const unsigned char *data,
GError **error)
{
gnutls_x509_crt_t der;
gnutls_datum dt;
gnutls_datum_t dt;
int err;
err = gnutls_x509_crt_init (&der);
@ -387,7 +387,7 @@ crypto_verify_pkcs12 (const GByteArray *data,
GError **error)
{
gnutls_pkcs12_t p12;
gnutls_datum dt;
gnutls_datum_t dt;
gboolean success = FALSE;
int err;
@ -441,7 +441,7 @@ crypto_verify_pkcs8 (const GByteArray *data,
GError **error)
{
gnutls_x509_privkey_t p8;
gnutls_datum dt;
gnutls_datum_t dt;
int err;
g_return_val_if_fail (data != NULL, FALSE);