mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 11:50:29 +01:00
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:
parent
98bc1c8cf9
commit
09da178639
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue