Lines Matching refs:ui_method
604 UI_METHOD *ui_method = NULL; in UI_create_method() local
606 if ((ui_method = OPENSSL_zalloc(sizeof(*ui_method))) == NULL in UI_create_method()
607 || (ui_method->name = OPENSSL_strdup(name)) == NULL in UI_create_method()
608 || !CRYPTO_new_ex_data(CRYPTO_EX_INDEX_UI_METHOD, ui_method, in UI_create_method()
609 &ui_method->ex_data)) { in UI_create_method()
611 if (ui_method != NULL) { in UI_create_method()
612 if (ui_method->name != NULL) in UI_create_method()
618 OPENSSL_free(ui_method->name); in UI_create_method()
620 OPENSSL_free(ui_method); in UI_create_method()
623 return ui_method; in UI_create_method()
631 void UI_destroy_method(UI_METHOD *ui_method) in UI_destroy_method() argument
633 if (ui_method == NULL) in UI_destroy_method()
635 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_UI_METHOD, ui_method, in UI_destroy_method()
636 &ui_method->ex_data); in UI_destroy_method()
637 OPENSSL_free(ui_method->name); in UI_destroy_method()
638 ui_method->name = NULL; in UI_destroy_method()
639 OPENSSL_free(ui_method); in UI_destroy_method()