From 4ebb5ac1e53c979d397ecd492fe6929b1d0f3a7c Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 19 May 2018 11:03:33 +0000 Subject: UI_METHOD *UI_create_method(const char *name). ^^^^^ tested in a bulk build by sthen ok jsing --- src/lib/libcrypto/ui/ui.h | 4 ++-- 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 @@ -/* $OpenBSD: ui.h,v 1.9 2014/07/10 22:45:58 jsing Exp $ */ +/* $OpenBSD: ui.h,v 1.10 2018/05/19 11:03:33 tb Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -304,7 +304,7 @@ enum UI_string_types { }; /* Create and manipulate methods */ -UI_METHOD *UI_create_method(char *name); +UI_METHOD *UI_create_method(const char *name); void UI_destroy_method(UI_METHOD *ui_method); int UI_method_set_opener(UI_METHOD *method, int (*opener)(UI *ui)); 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 @@ -/* $OpenBSD: ui_lib.c,v 1.32 2017/01/29 17:49:23 beck Exp $ */ +/* $OpenBSD: ui_lib.c,v 1.33 2018/05/19 11:03:33 tb Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -582,7 +582,7 @@ UI_set_method(UI *ui, const UI_METHOD *meth) UI_METHOD * -UI_create_method(char *name) +UI_create_method(const char *name) { UI_METHOD *ui_method = calloc(1, sizeof(UI_METHOD)); -- cgit v1.2.3-55-g6feb