+diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h\r
+index 39ab793..ad1e350 100644\r
+--- a/crypto/evp/evp.h\r
++++ b/crypto/evp/evp.h\r
+@@ -602,11 +602,13 @@ int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in);\r
+ int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);\r
+ int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s);\r
+ \r
++#ifndef OPENSSL_NO_UI\r
+ int EVP_read_pw_string(char *buf, int length, const char *prompt, int verify);\r
+ int EVP_read_pw_string_min(char *buf, int minlen, int maxlen,\r
+ const char *prompt, int verify);\r
+ void EVP_set_pw_prompt(const char *prompt);\r
+ char *EVP_get_pw_prompt(void);\r
++#endif\r
+ \r
+ int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,\r
+ const unsigned char *salt, const unsigned char *data,\r
+diff --git a/crypto/evp/evp_key.c b/crypto/evp/evp_key.c\r
+index 5be9e33..63c8866 100644\r
+--- a/crypto/evp/evp_key.c\r
++++ b/crypto/evp/evp_key.c\r
+@@ -63,6 +63,7 @@\r
+ #include <openssl/evp.h>\r
+ #include <openssl/ui.h>\r
+ \r
++#ifndef OPENSSL_NO_UI\r
+ /* should be init to zeros. */\r
+ static char prompt_string[80];\r
+ \r
+@@ -117,6 +118,7 @@ int EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt,\r
+ OPENSSL_cleanse(buff, BUFSIZ);\r
+ return ret;\r
+ }\r
++#endif /* OPENSSL_NO_UI */\r
+ \r
+ int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,\r
+ const unsigned char *salt, const unsigned char *data,\r