From 8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 16 May 2026 12:11:02 +0200 Subject: Add "reserved" parameter to a few more functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- librecrypt_realise_salts.3 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'librecrypt_realise_salts.3') diff --git a/librecrypt_realise_salts.3 b/librecrypt_realise_salts.3 index 0e314e2..7900a4f 100644 --- a/librecrypt_realise_salts.3 +++ b/librecrypt_realise_salts.3 @@ -7,7 +7,8 @@ librecrypt_realise_salts - Realise asterisk-encoded random salts in a settings s #include ssize_t \fBlibrecrypt_realise_salts\fP(char *restrict \fIout_buffer\fP, size_t \fIsize\fP, const char *\fIsettings\fP, - ssize_t (*\fIrng\fP)(void *\fIout\fP, size_t \fIn\fP, void *\fIuser\fP), void *\fIuser\fP); + ssize_t (*\fIrng\fP)(void *\fIout\fP, size_t \fIn\fP, void *\fIuser\fP), void *\fIuser\fP, + void *\fIreserved\fP); .fi .PP Link with @@ -63,6 +64,11 @@ bytes (inclusively), write them to the front of and return the number of generated bytes, or -1 on failure. .PP +The +.I reserved +parameter is reserved for future use and should be +.IR NULL . +.PP On successful completion, if .I size is positive, the output is @@ -103,6 +109,11 @@ The .BR librecrypt_realise_salts () function will fail if: .TP +.B EINVAL +.I reserved +is not +.IR NULL . +.TP .B ERANGE The expected return value is greater than {SSIZE_MAX}. .TP -- cgit v1.2.3-70-g09d2