diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_lib.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index dbc9711a2d..7ab249c3be 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
@@ -57,12 +57,12 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <string.h> | 59 | #include <string.h> |
60 | #include "cryptlib.h" | ||
60 | #include <openssl/e_os2.h> | 61 | #include <openssl/e_os2.h> |
61 | #include <openssl/buffer.h> | 62 | #include <openssl/buffer.h> |
62 | #include <openssl/ui.h> | 63 | #include <openssl/ui.h> |
63 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
64 | #include "ui_locl.h" | 65 | #include "ui_locl.h" |
65 | #include "cryptlib.h" | ||
66 | 66 | ||
67 | IMPLEMENT_STACK_OF(UI_STRING_ST) | 67 | IMPLEMENT_STACK_OF(UI_STRING_ST) |
68 | 68 | ||
@@ -545,7 +545,7 @@ int UI_process(UI *ui) | |||
545 | return ok; | 545 | return ok; |
546 | } | 546 | } |
547 | 547 | ||
548 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)()) | 548 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)(void)) |
549 | { | 549 | { |
550 | if (ui == NULL) | 550 | if (ui == NULL) |
551 | { | 551 | { |
@@ -620,8 +620,10 @@ UI_METHOD *UI_create_method(char *name) | |||
620 | UI_METHOD *ui_method = (UI_METHOD *)OPENSSL_malloc(sizeof(UI_METHOD)); | 620 | UI_METHOD *ui_method = (UI_METHOD *)OPENSSL_malloc(sizeof(UI_METHOD)); |
621 | 621 | ||
622 | if (ui_method) | 622 | if (ui_method) |
623 | { | ||
623 | memset(ui_method, 0, sizeof(*ui_method)); | 624 | memset(ui_method, 0, sizeof(*ui_method)); |
624 | ui_method->name = BUF_strdup(name); | 625 | ui_method->name = BUF_strdup(name); |
626 | } | ||
625 | return ui_method; | 627 | return ui_method; |
626 | } | 628 | } |
627 | 629 | ||