Lines Matching refs:ui_method
580 UI_METHOD *ui_method = NULL; in UI_create_method() local
582 if ((ui_method = OPENSSL_zalloc(sizeof(*ui_method))) == NULL in UI_create_method()
583 || (ui_method->name = OPENSSL_strdup(name)) == NULL in UI_create_method()
584 || !CRYPTO_new_ex_data(CRYPTO_EX_INDEX_UI_METHOD, ui_method, in UI_create_method()
585 &ui_method->ex_data)) { in UI_create_method()
587 if (ui_method != NULL) { in UI_create_method()
588 if (ui_method->name != NULL) in UI_create_method()
594 OPENSSL_free(ui_method->name); in UI_create_method()
596 OPENSSL_free(ui_method); in UI_create_method()
599 return ui_method; in UI_create_method()
607 void UI_destroy_method(UI_METHOD *ui_method) in UI_destroy_method() argument
609 if (ui_method == NULL) in UI_destroy_method()
611 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_UI_METHOD, ui_method, in UI_destroy_method()
612 &ui_method->ex_data); in UI_destroy_method()
613 OPENSSL_free(ui_method->name); in UI_destroy_method()
614 ui_method->name = NULL; in UI_destroy_method()
615 OPENSSL_free(ui_method); in UI_destroy_method()