mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 17:10:21 +01:00
crypto: remove some unused variables
libnm-core/nm-crypto.c:191:39: error: unused variable 'data_content'
[-Werror,-Wunused-variable]
nm_auto_clear_secret_ptr NMSecretPtr data_content = { 0 };
libnm-core/nm-crypto.c:341:18: error: unused variable 'der'
[-Werror,-Wunused-variable]
gs_free guchar *der = NULL;
libnm-core/nm-crypto.c:518:16: error: unused variable 'output'
[-Werror,-Wunused-variable]
gs_free char *output = NULL;
This commit is contained in:
parent
36f0825626
commit
92d36114dd
1 changed files with 0 additions and 3 deletions
|
|
@ -188,7 +188,6 @@ parse_old_openssl_key_file (const guint8 *data,
|
|||
int enc_tags = 0;
|
||||
NMCryptoKeyType key_type;
|
||||
nm_auto_clear_secret_ptr NMSecretPtr parsed = { 0 };
|
||||
nm_auto_clear_secret_ptr NMSecretPtr data_content = { 0 };
|
||||
nm_auto_free_secret char *iv = NULL;
|
||||
NMCryptoCipherType cipher = NM_CRYPTO_CIPHER_UNKNOWN;
|
||||
const char *start_tag;
|
||||
|
|
@ -338,7 +337,6 @@ parse_pkcs8_key_file (const guint8 *data,
|
|||
GError **error)
|
||||
{
|
||||
gsize start = 0, end = 0;
|
||||
gs_free guchar *der = NULL;
|
||||
const char *start_tag = NULL, *end_tag = NULL;
|
||||
gboolean encrypted = FALSE;
|
||||
nm_auto_free_secret char *der_base64 = NULL;
|
||||
|
|
@ -515,7 +513,6 @@ _nmtst_decrypt_key (NMCryptoCipherType cipher,
|
|||
{
|
||||
nm_auto_clear_secret_ptr NMSecretPtr bin_iv = { 0 };
|
||||
nm_auto_clear_secret_ptr NMSecretPtr key = { 0 };
|
||||
gs_free char *output = NULL;
|
||||
|
||||
nm_assert (password);
|
||||
nm_assert (cipher != NM_CRYPTO_CIPHER_UNKNOWN);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue