aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2016-02-21 16:19:44 +0000
committerRich Salz <rsalz@openssl.org>2016-03-07 14:51:08 -0500
commitb9bd7b06cc409e96ceb7606a79a7f5900aa696fe (patch)
tree0c445d503afdce7db35bc4937d058e4d031afdc2 /crypto/des
parent92d23b339c631bca2cf12a47e05f13772f9868a0 (diff)
downloadopenssl-b9bd7b06cc409e96ceb7606a79a7f5900aa696fe.tar.gz
Elide DES_read_password() for no-ui build
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/des')
-rw-r--r--crypto/des/read2pwd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/des/read2pwd.c b/crypto/des/read2pwd.c
index db31adb526..748d0e621b 100644
--- a/crypto/des/read2pwd.c
+++ b/crypto/des/read2pwd.c
@@ -113,6 +113,8 @@
#include <openssl/ui.h>
#include <openssl/crypto.h>
+#ifndef OPENSSL_NO_UI
+
#ifndef BUFSIZ
#define BUFSIZ 256
#endif
@@ -141,3 +143,4 @@ int DES_read_2passwords(DES_cblock *key1, DES_cblock *key2,
OPENSSL_cleanse(buff, BUFSIZ);
return (ok);
}
+#endif