From: FdaSilvaYY Date: Tue, 7 Jun 2016 22:03:08 +0000 (+0200) Subject: Constify UI X-Git-Tag: OpenSSL_1_1_0-pre6~432 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=472f727c5510b95dccb1751147016ab09d1c7897;p=openssl Constify UI Reviewed-by: Kurt Roeckx Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1215) --- diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c index 1213892ad5..2940b2fd4a 100644 --- a/crypto/ui/ui_lib.c +++ b/crypto/ui/ui_lib.c @@ -532,7 +532,7 @@ const UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth) return ui->meth; } -UI_METHOD *UI_create_method(char *name) +UI_METHOD *UI_create_method(const char *name) { UI_METHOD *ui_method = OPENSSL_zalloc(sizeof(*ui_method)); diff --git a/include/openssl/ui.h b/include/openssl/ui.h index 4173fe0289..dcebb6e771 100644 --- a/include/openssl/ui.h +++ b/include/openssl/ui.h @@ -269,7 +269,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,