diff options
author | Thomas Haller <thaller@redhat.com> | 2018-08-31 07:40:52 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-09-04 07:38:30 +0200 |
commit | 2456298da02579ca87b836d6552779c8803cfce2 (patch) | |
tree | b8336b9187d9ed6746f92b401ba26134505ba787 /libnm-core/nm-crypto.h | |
parent | 67f36f880e58d1c13377cd985e6735087c88bf7a (diff) | |
download | NetworkManager-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.h | 12 |
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); |