| * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. |
| * Licensed under the OpenSSL license (the "License"). You may not use |
| * this file except in compliance with the License. You can obtain a copy |
| * in the file LICENSE in the source distribution or at |
| * https://www.openssl.org/source/license.html |
| int UI_UTIL_read_pw_string(char *buf, int length, const char *prompt, |
| UI_UTIL_read_pw(buf, buff, (length > BUFSIZ) ? BUFSIZ : length, |
| OPENSSL_cleanse(buff, BUFSIZ); |
| int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, |
| ok = UI_add_input_string(ui, prompt, 0, buf, 0, size - 1); |
| ok = UI_add_verify_string(ui, prompt, 0, buff, 0, size - 1, buf); |