summaryrefslogtreecommitdiff
path: root/crypto/openssl/crypto/ui/ui_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/ui/ui_util.c')
-rw-r--r--crypto/openssl/crypto/ui/ui_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/openssl/crypto/ui/ui_util.c b/crypto/openssl/crypto/ui/ui_util.c
index b379324f9bab..32a3c4e38de2 100644
--- a/crypto/openssl/crypto/ui/ui_util.c
+++ b/crypto/openssl/crypto/ui/ui_util.c
@@ -8,8 +8,9 @@
*/
#include <string.h>
+#include <openssl/pem.h> /* PEM_def_callback() */
#include "internal/thread_once.h"
-#include "ui_locl.h"
+#include "ui_local.h"
#ifndef BUFSIZ
#define BUFSIZ 256
@@ -156,7 +157,7 @@ UI_METHOD *UI_UTIL_wrap_read_pem_callback(pem_password_cb *cb, int rwflag)
return NULL;
}
data->rwflag = rwflag;
- data->cb = cb;
+ data->cb = cb != NULL ? cb : PEM_def_callback;
return ui_method;
}