Lines Matching refs:str
84 static void *default_realloc_ex(void *str, size_t num,
86 { return realloc_func(str,num); }
282 void CRYPTO_free_locked(void *str)
285 free_debug_func(str, 0);
287 fprintf(stderr, "LEVITTE_DEBUG_MEM: < 0x%p\n", str);
289 free_locked_func(str);
325 char *CRYPTO_strdup(const char *str, const char *file, int line)
327 char *ret = CRYPTO_malloc(strlen(str)+1, file, line);
329 strcpy(ret, str);
333 void *CRYPTO_realloc(void *str, int num, const char *file, int line)
337 if (str == NULL)
343 realloc_debug_func(str, NULL, num, file, line, 0);
344 ret = realloc_ex_func(str,num,file,line);
346 fprintf(stderr, "LEVITTE_DEBUG_MEM: | 0x%p -> 0x%p (%d)\n", str, ret, num);
349 realloc_debug_func(str, ret, num, file, line, 1);
354 void *CRYPTO_realloc_clean(void *str, int old_len, int num, const char *file,
359 if (str == NULL)
365 realloc_debug_func(str, NULL, num, file, line, 0);
369 memcpy(ret,str,old_len);
370 OPENSSL_cleanse(str,old_len);
371 free_func(str);
376 str, ret, num);
379 realloc_debug_func(str, ret, num, file, line, 1);
384 void CRYPTO_free(void *str)
387 free_debug_func(str, 0);
389 fprintf(stderr, "LEVITTE_DEBUG_MEM: < 0x%p\n", str);
391 free_func(str);