Lines Matching refs:ret
23 BUF_MEM *ret; in BUF_MEM_new_ex() local
25 ret = BUF_MEM_new(); in BUF_MEM_new_ex()
26 if (ret != NULL) in BUF_MEM_new_ex()
27 ret->flags = flags; in BUF_MEM_new_ex()
28 return ret; in BUF_MEM_new_ex()
33 BUF_MEM *ret; in BUF_MEM_new() local
35 ret = OPENSSL_zalloc(sizeof(*ret)); in BUF_MEM_new()
36 if (ret == NULL) in BUF_MEM_new()
38 return ret; in BUF_MEM_new()
58 char *ret; in sec_alloc_realloc() local
60 ret = OPENSSL_secure_malloc(len); in sec_alloc_realloc()
62 if (ret != NULL) { in sec_alloc_realloc()
63 memcpy(ret, str->data, str->length); in sec_alloc_realloc()
68 return ret; in sec_alloc_realloc()
73 char *ret; in BUF_MEM_grow() local
93 ret = sec_alloc_realloc(str, n); in BUF_MEM_grow()
95 ret = OPENSSL_realloc(str->data, n); in BUF_MEM_grow()
96 if (ret == NULL) { in BUF_MEM_grow()
99 str->data = ret; in BUF_MEM_grow()
109 char *ret; in BUF_MEM_grow_clean() local
130 ret = sec_alloc_realloc(str, n); in BUF_MEM_grow_clean()
132 ret = OPENSSL_clear_realloc(str->data, str->max, n); in BUF_MEM_grow_clean()
133 if (ret == NULL) { in BUF_MEM_grow_clean()
136 str->data = ret; in BUF_MEM_grow_clean()