Add checks on sk_TYPE_push() returned result
[openssl.git] / include / openssl / ui.h
index 482c3fbcdfef9df27f94b48840a12a0bce5c8d30..dcebb6e771323bde5b1382e593fc9bd578163e03 100644 (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,
@@ -333,6 +333,7 @@ int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,
  * The following lines are auto generated by the script mkerr.pl. Any changes
  * made after this point may be overwritten when the script is next run.
  */
+
 void ERR_load_UI_strings(void);
 
 /* Error codes for the UI functions. */
@@ -340,7 +341,7 @@ void ERR_load_UI_strings(void);
 /* Function codes. */
 # define UI_F_GENERAL_ALLOCATE_BOOLEAN                    108
 # define UI_F_GENERAL_ALLOCATE_PROMPT                     109
-# define UI_F_GENERAL_ALLOCATE_STRING                     100
+# define UI_F_UI_CREATE_METHOD                            112
 # define UI_F_UI_CTRL                                     111
 # define UI_F_UI_DUP_ERROR_STRING                         101
 # define UI_F_UI_DUP_INFO_STRING                          102
@@ -360,8 +361,8 @@ void ERR_load_UI_strings(void);
 # define UI_R_RESULT_TOO_SMALL                            101
 # define UI_R_UNKNOWN_CONTROL_COMMAND                     106
 
-#ifdef  __cplusplus
+#  ifdef  __cplusplus
 }
-#endif
-# endif /* OPENSSL_NO_UI */
+#  endif
+# endif
 #endif