diff options
author | tb <> | 2018-05-19 11:03:33 +0000 |
---|---|---|
committer | tb <> | 2018-05-19 11:03:33 +0000 |
commit | 4ebb5ac1e53c979d397ecd492fe6929b1d0f3a7c (patch) | |
tree | 57e2767919f269bb11cf55981bc9a0974af53a64 /src | |
parent | 913d308dc1462b50d88ce669634b1c067ea18d48 (diff) | |
download | openbsd-4ebb5ac1e53c979d397ecd492fe6929b1d0f3a7c.tar.gz openbsd-4ebb5ac1e53c979d397ecd492fe6929b1d0f3a7c.tar.bz2 openbsd-4ebb5ac1e53c979d397ecd492fe6929b1d0f3a7c.zip |
UI_METHOD *UI_create_method(const char *name).
^^^^^
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ui/ui.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ui/ui.h b/src/lib/libcrypto/ui/ui.h index b6b0075e4d..8ae0dd5e75 100644 --- a/src/lib/libcrypto/ui/ui.h +++ b/src/lib/libcrypto/ui/ui.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ui.h,v 1.9 2014/07/10 22:45:58 jsing Exp $ */ | 1 | /* $OpenBSD: ui.h,v 1.10 2018/05/19 11:03:33 tb Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -304,7 +304,7 @@ enum UI_string_types { | |||
304 | }; | 304 | }; |
305 | 305 | ||
306 | /* Create and manipulate methods */ | 306 | /* Create and manipulate methods */ |
307 | UI_METHOD *UI_create_method(char *name); | 307 | UI_METHOD *UI_create_method(const char *name); |
308 | void UI_destroy_method(UI_METHOD *ui_method); | 308 | void UI_destroy_method(UI_METHOD *ui_method); |
309 | int UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui)); | 309 | int UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui)); |
310 | int UI_method_set_writer(UI_METHOD *method, int (*writer)(UI *ui, UI_STRING *uis)); | 310 | int UI_method_set_writer(UI_METHOD *method, int (*writer)(UI *ui, UI_STRING *uis)); |
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index e551030729..8ad5580261 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ui_lib.c,v 1.32 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: ui_lib.c,v 1.33 2018/05/19 11:03:33 tb Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -582,7 +582,7 @@ UI_set_method(UI *ui, const UI_METHOD *meth) | |||
582 | 582 | ||
583 | 583 | ||
584 | UI_METHOD * | 584 | UI_METHOD * |
585 | UI_create_method(char *name) | 585 | UI_create_method(const char *name) |
586 | { | 586 | { |
587 | UI_METHOD *ui_method = calloc(1, sizeof(UI_METHOD)); | 587 | UI_METHOD *ui_method = calloc(1, sizeof(UI_METHOD)); |
588 | 588 | ||