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, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index 7ab249c3be..dbc9711a2d 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" | ||
61 | #include <openssl/e_os2.h> | 60 | #include <openssl/e_os2.h> |
62 | #include <openssl/buffer.h> | 61 | #include <openssl/buffer.h> |
63 | #include <openssl/ui.h> | 62 | #include <openssl/ui.h> |
64 | #include <openssl/err.h> | 63 | #include <openssl/err.h> |
65 | #include "ui_locl.h" | 64 | #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)(void)) | 548 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f)()) |
549 | { | 549 | { |
550 | if (ui == NULL) | 550 | if (ui == NULL) |
551 | { | 551 | { |
@@ -620,10 +620,8 @@ 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 | { | ||
624 | memset(ui_method, 0, sizeof(*ui_method)); | 623 | memset(ui_method, 0, sizeof(*ui_method)); |
625 | ui_method->name = BUF_strdup(name); | 624 | ui_method->name = BUF_strdup(name); |
626 | } | ||
627 | return ui_method; | 625 | return ui_method; |
628 | } | 626 | } |
629 | 627 | ||