summaryrefslogtreecommitdiff
path: root/libnm-core/nm-crypto.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-08-31 07:40:52 +0200
committerThomas Haller <thaller@redhat.com>2018-09-04 07:38:30 +0200
commit2456298da02579ca87b836d6552779c8803cfce2 (patch)
treeb8336b9187d9ed6746f92b401ba26134505ba787 /libnm-core/nm-crypto.h
parent67f36f880e58d1c13377cd985e6735087c88bf7a (diff)
downloadNetworkManager-2456298da02579ca87b836d6552779c8803cfce2.tar.gz
libnm/crypto: adjust signature of crypto functions
- avoid "const gsize" as type for function arguments. - consistently use "guint8 *" type for binary data, instead of "char *", which indicates a NUL terminated C string.
Diffstat (limited to 'libnm-core/nm-crypto.h')
-rw-r--r--libnm-core/nm-crypto.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libnm-core/nm-crypto.h b/libnm-core/nm-crypto.h
index 8294bdbe1b..70019211b3 100644
--- a/libnm-core/nm-crypto.h
+++ b/libnm-core/nm-crypto.h
@@ -81,12 +81,12 @@ void nm_crypto_md5_hash (const guint8 *salt,
guint8 *buffer,
gsize buflen);
-char *nm_crypto_make_des_aes_key (const char *cipher,
- const char *salt,
- const gsize salt_len,
- const char *password,
- gsize *out_len,
- GError **error);
+guint8 *nm_crypto_make_des_aes_key (const char *cipher,
+ const guint8 *salt,
+ gsize salt_len,
+ const char *password,
+ gsize *out_len,
+ GError **error);
gboolean nm_crypto_randomize (void *buffer, gsize buffer_len, GError **error);