From: Milan Broz Date: Wed, 5 Jan 2011 16:59:42 +0000 (+0000) Subject: Document password callback. X-Git-Tag: upstream/1.6~533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b42f15a95ea6074982d7b06e63f944574350dc0;p=platform%2Fupstream%2Fcryptsetup.git Document password callback. git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@412 36d66b0a-2a48-0410-832c-cd162a569da5 --- diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index abedba2..872dd1d 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -85,6 +85,9 @@ void crypt_set_confirm_callback(struct crypt_device *cd, * @buf - buffer for password * @length - size of buffer * + * Calback should return length of password in buffer + * or negative errno value in case of error. + * * - Note that if this function is defined, verify option is ignored * (caller which provided callback is responsible for password verification) * - Only zero terminated passwords can be entered this way, for complex