summaryrefslogtreecommitdiff
path: root/src/libnm-crypto
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2023-03-01 01:21:38 +0100
committerThomas Haller <thaller@redhat.com>2023-03-27 11:49:43 +0200
commit5d28a0dd899bbe24f805758283173927c530291c (patch)
tree0f0e7b62a729a691ed503c8781eb198efdb66f96 /src/libnm-crypto
parent83d2ec2ec1364cf17029253709ac37c7528573a2 (diff)
downloadNetworkManager-5d28a0dd899bbe24f805758283173927c530291c.tar.gz
doc: replace all (allow-none) annotations by (optional) and/or (nullable)
The (allow-none) annotation is deprecated since a long time now, it is better to use (nullable) and/or (optional) which clarifies what it means with the (out) annotation. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1551
Diffstat (limited to 'src/libnm-crypto')
-rw-r--r--src/libnm-crypto/nm-crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnm-crypto/nm-crypto.c b/src/libnm-crypto/nm-crypto.c
index 8cf6633632..7fcff4a9f7 100644
--- a/src/libnm-crypto/nm-crypto.c
+++ b/src/libnm-crypto/nm-crypto.c
@@ -899,9 +899,9 @@ nm_crypto_randomize(void *buffer, gsize buffer_len, GError **error)
* nmtst_crypto_rsa_key_encrypt:
* @data: (array length=len): RSA private key data to be encrypted
* @len: length of @data
- * @in_password: (allow-none): existing password to use, if any
- * @out_password: (out) (allow-none): if @in_password was %NULL, a random
- * password will be generated and returned in this argument
+ * @in_password: (nullable): existing password to use, if any
+ * @out_password: (out) (optional) (nullable): if @in_password was %NULL, a
+ * random password will be generated and returned in this argument
* @error: detailed error information on return, if an error occurred
*
* Encrypts the given RSA private key data with the given password (or generates