projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4378fd
)
UI_UTIL_wrap_read_pem_callback(): when |cb| is NULL, use PEM_def_callback
author
Richard Levitte
<levitte@openssl.org>
Thu, 14 Nov 2019 11:09:42 +0000
(12:09 +0100)
committer
Richard Levitte
<levitte@openssl.org>
Fri, 22 Nov 2019 14:22:37 +0000
(15:22 +0100)
Fixes #10444
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10447)
(cherry picked from commit
72a5412b4858cc7c5627a121f78685a2a4065521
)
crypto/ui/ui_util.c
patch
|
blob
|
history
diff --git
a/crypto/ui/ui_util.c
b/crypto/ui/ui_util.c
index 6a37b6d287f60f52252d550d75a6042d8ccc1c7e..32a3c4e38de2c628f359fb1f2261648e751647ec 100644
(file)
--- a/
crypto/ui/ui_util.c
+++ b/
crypto/ui/ui_util.c
@@
-8,6
+8,7
@@
*/
#include <string.h>
+#include <openssl/pem.h> /* PEM_def_callback() */
#include "internal/thread_once.h"
#include "ui_local.h"
@@
-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;
}