diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2022-05-03 15:01:12 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2022-05-03 15:01:12 +0000 |
| commit | cf0ffd7607ed8f39829c6951a65a55fa1eb3aafe (patch) | |
| tree | 313b32246c8ef2c8b712ea825eda45d4d09f4a18 /apps/apps.c | |
| parent | d6d3d400982465ee2c394caa850ba51c537b5a09 (diff) | |
Import OpenSSL 1.1.1ovendor/openssl/1.1.1o
Diffstat (limited to 'apps/apps.c')
| -rw-r--r-- | apps/apps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c index 1a92271595f1..db5b48e4cf2f 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -307,6 +307,8 @@ int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_tmp) if (cb_data != NULL && cb_data->password != NULL && *(const char*)cb_data->password != '\0') pw_min_len = 1; + else if (!verify) + pw_min_len = 0; prompt = UI_construct_prompt(ui, "pass phrase", prompt_info); if (!prompt) { BIO_printf(bio_err, "Out of memory\n"); |
