Lines Matching defs:str
86 static void *default_realloc_ex(void *str, size_t num,
89 return realloc_func(str, num);
316 void CRYPTO_free_locked(void *str)
319 free_debug_func(str, 0);
321 fprintf(stderr, "LEVITTE_DEBUG_MEM: < 0x%p\n", str);
323 free_locked_func(str);
364 char *CRYPTO_strdup(const char *str, const char *file, int line)
366 char *ret = CRYPTO_malloc(strlen(str) + 1, file, line);
371 strcpy(ret, str);
375 void *CRYPTO_realloc(void *str, int num, const char *file, int line)
379 if (str == NULL)
386 realloc_debug_func(str, NULL, num, file, line, 0);
387 ret = realloc_ex_func(str, num, file, line);
389 fprintf(stderr, "LEVITTE_DEBUG_MEM: | 0x%p -> 0x%p (%d)\n", str,
393 realloc_debug_func(str, ret, num, file, line, 1);
398 void *CRYPTO_realloc_clean(void *str, int old_len, int num, const char *file,
403 if (str == NULL)
417 realloc_debug_func(str, NULL, num, file, line, 0);
420 memcpy(ret, str, old_len);
421 OPENSSL_cleanse(str, old_len);
422 free_func(str);
427 str, ret, num);
430 realloc_debug_func(str, ret, num, file, line, 1);
435 void CRYPTO_free(void *str)
438 free_debug_func(str, 0);
440 fprintf(stderr, "LEVITTE_DEBUG_MEM: < 0x%p\n", str);
442 free_func(str);