Lines Matching refs:state
201 void OSSL_ERR_STATE_free(ERR_STATE *state) in OSSL_ERR_STATE_free() argument
205 if (state == NULL) in OSSL_ERR_STATE_free()
208 err_clear(state, i, 1); in OSSL_ERR_STATE_free()
210 CRYPTO_free(state, OPENSSL_FILE, OPENSSL_LINE); in OSSL_ERR_STATE_free()
646 ERR_STATE *state = CRYPTO_THREAD_get_local(&err_thread_local); in err_delete_thread_state() local
647 if (state == NULL) in err_delete_thread_state()
651 OSSL_ERR_STATE_free(state); in err_delete_thread_state()
674 ERR_STATE *state; in ossl_err_get_state_int() local
683 state = CRYPTO_THREAD_get_local(&err_thread_local); in ossl_err_get_state_int()
684 if (state == (ERR_STATE*)-1) in ossl_err_get_state_int()
687 if (state == NULL) { in ossl_err_get_state_int()
691 state = OSSL_ERR_STATE_new(); in ossl_err_get_state_int()
692 if (state == NULL) { in ossl_err_get_state_int()
698 || !CRYPTO_THREAD_set_local(&err_thread_local, state)) { in ossl_err_get_state_int()
699 OSSL_ERR_STATE_free(state); in ossl_err_get_state_int()
709 return state; in ossl_err_get_state_int()
724 int err_shelve_state(void **state) in err_shelve_state() argument
746 *state = CRYPTO_THREAD_get_local(&err_thread_local); in err_shelve_state()
758 void err_unshelve_state(void* state) in err_unshelve_state() argument
760 if (state != (void*)-1) in err_unshelve_state()
761 CRYPTO_THREAD_set_local(&err_thread_local, (ERR_STATE*)state); in err_unshelve_state()