diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-06-08 00:03:08 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-06-15 13:22:38 -0400 |
commit | 472f727c5510b95dccb1751147016ab09d1c7897 (patch) | |
tree | 3d03245535fa6da3fd79ce56de81485e204ae510 | |
parent | 82af00fbddc7b48f292e8e278eebb57a192c549e (diff) |
Constify UI
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1215)
-rw-r--r-- | crypto/ui/ui_lib.c | 2 | ||||
-rw-r--r-- | include/openssl/ui.h | 2 |
2 files changed, 2 insertions, 2 deletions
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, |