aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_get_encoding.3
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-16 12:11:02 +0200
committerMattias Andrée <m@maandree.se>2026-05-16 12:11:02 +0200
commit8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b (patch)
tree827cd837787ad59964e9233b73629bb6c7c717a2 /librecrypt_get_encoding.3
parentm (diff)
downloadlibrecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.gz
librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.bz2
librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.xz
Add "reserved" parameter to a few more functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_get_encoding.3')
-rw-r--r--librecrypt_get_encoding.314
1 files changed, 12 insertions, 2 deletions
diff --git a/librecrypt_get_encoding.3 b/librecrypt_get_encoding.3
index e9f7e83..2c0b827 100644
--- a/librecrypt_get_encoding.3
+++ b/librecrypt_get_encoding.3
@@ -6,8 +6,8 @@ librecrypt_get_encoding - Get encoding alphabet for the last algorithm in a chai
.nf
#include <librecrypt.h>
-const void *\fBlibrecrypt_get_encoding\fP(const char *\fIsettings\fP, size_t \fIlen\fP,
- char *\fIpad_out\fP, int *\fIstrict_pad_out\fP, int \fIdecoding\fP);
+const void *\fBlibrecrypt_get_encoding\fP(const char *\fIsettings\fP, size_t \fIlen\fP, char *\fIpad_out\fP,
+ int *\fIstrict_pad_out\fP, int \fIdecoding\fP, void *\fIreserved\fP);
.fi
.PP
Link with
@@ -44,6 +44,11 @@ character) to its value in the encoding
alphabet and any other character to
.BR 0xFFu .
.PP
+The
+.I reserved
+parameter is reserved for future use and should be
+.IR NULL .
+.PP
On success,
.IR *pad_out
is set to the padding character, or to the
@@ -77,6 +82,11 @@ The
.BR librecrypt_get_encoding ()
function will fail if:
.TP
+.B EINVAL
+.I reserved
+is not
+.IR NULL .
+.TP
.B ENOSYS
The last algorithm in
.I settings