summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-03-27 19:27:51 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-03-27 19:27:51 +0000
commit9caf25d1449e78d0ab145c5bde936d4760bc528f (patch)
tree43028d29f9c34e811abf6659e06596b9075469f2 /crypto/pem
parent348620c7ac710ab22cffc3d8d474d4b62040e0d4 (diff)
PR: 1904
Submitted by: David Woodhouse <dwmw2@infradead.org> Pass passphrase minimum length down to UI.
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index a547fdc933..42e4861bc1 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -105,7 +105,7 @@ int PEM_def_callback(char *buf, int num, int w, void *key)
for (;;)
{
- i=EVP_read_pw_string(buf,num,prompt,w);
+ i=EVP_read_pw_string_min(buf,MIN_LENGTH,num,prompt,w);
if (i != 0)
{
PEMerr(PEM_F_PEM_DEF_CALLBACK,PEM_R_PROBLEMS_GETTING_PASSWORD);