Lines Matching refs:thread_es
29 ERR_STATE *thread_es; in OSSL_ERR_STATE_save() local
37 thread_es = ossl_err_get_state_int(); in OSSL_ERR_STATE_save()
38 if (thread_es == NULL) in OSSL_ERR_STATE_save()
41 memcpy(es, thread_es, sizeof(*es)); in OSSL_ERR_STATE_save()
43 memset(thread_es, 0, sizeof(*thread_es)); in OSSL_ERR_STATE_save()
50 ERR_STATE *thread_es; in OSSL_ERR_STATE_save_to_mark() local
55 thread_es = ossl_err_get_state_int(); in OSSL_ERR_STATE_save_to_mark()
56 if (thread_es == NULL) { in OSSL_ERR_STATE_save_to_mark()
65 for (count = 0, top = thread_es->top; in OSSL_ERR_STATE_save_to_mark()
66 thread_es->bottom != top in OSSL_ERR_STATE_save_to_mark()
67 && thread_es->err_marks[top] == 0; in OSSL_ERR_STATE_save_to_mark()
78 es->err_flags[i] = thread_es->err_flags[j]; in OSSL_ERR_STATE_save_to_mark()
80 es->err_buffer[i] = thread_es->err_buffer[j]; in OSSL_ERR_STATE_save_to_mark()
81 es->err_data[i] = thread_es->err_data[j]; in OSSL_ERR_STATE_save_to_mark()
82 es->err_data_size[i] = thread_es->err_data_size[j]; in OSSL_ERR_STATE_save_to_mark()
83 es->err_data_flags[i] = thread_es->err_data_flags[j]; in OSSL_ERR_STATE_save_to_mark()
84 es->err_file[i] = thread_es->err_file[j]; in OSSL_ERR_STATE_save_to_mark()
85 es->err_line[i] = thread_es->err_line[j]; in OSSL_ERR_STATE_save_to_mark()
86 es->err_func[i] = thread_es->err_func[j]; in OSSL_ERR_STATE_save_to_mark()
88 thread_es->err_flags[j] = 0; in OSSL_ERR_STATE_save_to_mark()
89 thread_es->err_buffer[j] = 0; in OSSL_ERR_STATE_save_to_mark()
90 thread_es->err_data[j] = NULL; in OSSL_ERR_STATE_save_to_mark()
91 thread_es->err_data_size[j] = 0; in OSSL_ERR_STATE_save_to_mark()
92 thread_es->err_data_flags[j] = 0; in OSSL_ERR_STATE_save_to_mark()
93 thread_es->err_file[j] = NULL; in OSSL_ERR_STATE_save_to_mark()
94 thread_es->err_line[j] = 0; in OSSL_ERR_STATE_save_to_mark()
95 thread_es->err_func[j] = NULL; in OSSL_ERR_STATE_save_to_mark()
99 thread_es->top = top; in OSSL_ERR_STATE_save_to_mark()
116 ERR_STATE *thread_es; in OSSL_ERR_STATE_restore() local
121 thread_es = ossl_err_get_state_int(); in OSSL_ERR_STATE_restore()
122 if (thread_es == NULL) in OSSL_ERR_STATE_restore()
132 err_get_slot(thread_es); in OSSL_ERR_STATE_restore()
133 top = thread_es->top; in OSSL_ERR_STATE_restore()
134 err_clear(thread_es, top, 0); in OSSL_ERR_STATE_restore()
136 thread_es->err_flags[top] = es->err_flags[i]; in OSSL_ERR_STATE_restore()
137 thread_es->err_buffer[top] = es->err_buffer[i]; in OSSL_ERR_STATE_restore()
139 err_set_debug(thread_es, top, es->err_file[i], es->err_line[i], in OSSL_ERR_STATE_restore()
149 err_set_data(thread_es, top, data, data_sz, in OSSL_ERR_STATE_restore()
153 err_clear_data(thread_es, top, 0); in OSSL_ERR_STATE_restore()