5 UI_UTIL_read_pw_string, UI_UTIL_read_pw,
6 UI_UTIL_wrap_read_pem_callback - user interface utilities
10 #include <openssl/ui.h>
12 int UI_UTIL_read_pw_string(char *buf, int length, const char *prompt,
14 int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,
16 UI_METHOD *UI_UTIL_wrap_read_pem_callback(pem_password_cb *cb, int rwflag);
20 UI_UTIL_read_pw_string() asks for a passphrase, using B<prompt> as a
21 prompt, and stores it in B<buf>.
22 The maximum allowed size is given with B<length>, including the
24 If B<verify> is non-zero, the password will be verified as well.
26 UI_UTIL_read_pw() does the same as UI_UTIL_read_pw_string(), the
27 difference is that you can give it an external buffer B<buff> for the
28 verification passphrase.
30 UI_UTIL_wrap_read_pem_callback() can be used to create a temporary
31 B<UI_METHOD> that wraps a given PEM password callback B<cb>.
32 B<rwflag> is used to specify if this method will be used for
33 passphrase entry without (0) or with (1) verification.
34 When not used any more, the returned method should be freed with
39 UI_UTIL_read_pw_string() and UI_UTIL_read_pw() use default
41 See L<UI_get_default_method(3)> and friends for more information.
43 The result from the B<UI_METHOD> created by
44 UI_UTIL_wrap_read_pem_callback() will generate password strings in the
45 encoding that the given password callback generates.
46 The default password prompting functions (apart from
47 UI_UTIL_read_pw_string() and UI_UTIL_read_pw(), there is
48 PEM_def_callback(), EVP_read_pw_string() and EVP_read_pw_string_min())
49 all use the default B<UI_METHOD>.
53 L<UI_get_default_method(3)>
57 Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
59 Licensed under the OpenSSL license (the "License"). You may not use
60 this file except in compliance with the License. You can obtain a copy
61 in the file LICENSE in the source distribution or at
62 L<https://www.openssl.org/source/license.html>.