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)
This commit is contained in:
FdaSilvaYY 2016-06-08 00:03:08 +02:00 committed by Rich Salz
parent 82af00fbdd
commit 472f727c55
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

@ -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,