From b29f4153e83623f24bebe99976e1368ef31bb008 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 21 May 2026 17:12:20 +0200 Subject: Add support for custom hash functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- librecrypt_get_user_data.3 | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 librecrypt_get_user_data.3 (limited to 'librecrypt_get_user_data.3') diff --git a/librecrypt_get_user_data.3 b/librecrypt_get_user_data.3 new file mode 100644 index 0000000..63187ee --- /dev/null +++ b/librecrypt_get_user_data.3 @@ -0,0 +1,49 @@ +.TH LIBRECRYPT_GET_USER_DATA 3 LIBRECRYPT +.SH NAME +librecrypt_get_user_data - Retrieve application-defined data + +.SH SYNOPSIS +.nf +#include + +void \fBlibrecrypt_get_user_data\fP(const LIBRECRYPT_CONTEXT *\fIctx\fP, void *\fIuser\fP); +.fi +.PP +Link with +.IR -lrecrypt . + +.SH DESCRIPTION +The +.BR librecrypt_get_user_data () +function returns a pointer to application-defined +data, stored using the +.BR librecrypt_set_user_data (3) +function, inside the +.IR ctx . + +.SH RETURN VALUES +The +.BR librecrypt_get_user_data () +function returns a pointer stored in +.I ctx +by the application, or +.I NULL +if no pointer or the +.I NULL +pointer was stored. + +.SH ERRORS +The +.BR librecrypt_get_user_data () +function cannot fail. + +.SH HISTORY +The +.BR librecrypt_get_user_data () +function was introduced in version 1.1 of +.BR librecrypt . + +.SH SEE ALSO +.BR librecrypt (7), +.BR librecrypt_set_user_data (3), +.BR librecrypt_set_custom_algorithms (3) -- cgit v1.3.1