@@ -236,19 +236,19 @@ version (OPENSSL_NO_LOCKING) {
236
236
void CRYPTO_add ()(int * addr, int amount, int type) { * addr += amount; }
237
237
} else {
238
238
void CRYPTO_w_lock (string file = __FILE__ , size_t line = __LINE__ )(int type) {
239
- CRYPTO_lock(CRYPTO_LOCK |CRYPTO_WRITE ,type,file,line);
239
+ CRYPTO_lock(CRYPTO_LOCK |CRYPTO_WRITE ,type,file.ptr ,line);
240
240
}
241
241
void CRYPTO_w_unlock (string file = __FILE__ , size_t line = __LINE__ )(int type) {
242
- CRYPTO_lock(CRYPTO_UNLOCK |CRYPTO_WRITE ,type,file,line);
242
+ CRYPTO_lock(CRYPTO_UNLOCK |CRYPTO_WRITE ,type,file.ptr ,line);
243
243
}
244
244
void CRYPTO_r_lock (string file = __FILE__ , size_t line = __LINE__ )(int type) {
245
- CRYPTO_lock(CRYPTO_LOCK |CRYPTO_READ ,type,file,line);
245
+ CRYPTO_lock(CRYPTO_LOCK |CRYPTO_READ ,type,file.ptr ,line);
246
246
}
247
247
void CRYPTO_r_unlock (string file = __FILE__ , size_t line = __LINE__ )(int type) {
248
- CRYPTO_lock(CRYPTO_UNLOCK |CRYPTO_READ ,type,file,line);
248
+ CRYPTO_lock(CRYPTO_UNLOCK |CRYPTO_READ ,type,file.ptr ,line);
249
249
}
250
250
void CRYPTO_add (string file = __FILE__ , size_t line = __LINE__ )(int * addr, int amount, int type) {
251
- CRYPTO_add_lock(addr,amount,type,file,line);
251
+ CRYPTO_add_lock(addr,amount,type,file.ptr ,line);
252
252
}
253
253
}
254
254
@@ -368,25 +368,25 @@ int MemCheck_off()() { return CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE); }
368
368
alias CRYPTO_is_mem_check_on is_MemCheck_on;
369
369
370
370
auto OPENSSL_malloc (string file = __FILE__ , size_t line = __LINE__ )(int num) {
371
- return CRYPTO_malloc (num,file,line);
371
+ return CRYPTO_malloc (num,file.ptr ,line);
372
372
}
373
373
auto OPENSSL_strdup (string file = __FILE__ , size_t line = __LINE__ )(const (char )* str) {
374
- return CRYPTO_strdup (str,file,line);
374
+ return CRYPTO_strdup (str,file.ptr ,line);
375
375
}
376
376
auto OPENSSL_realloc (string file = __FILE__ , size_t line = __LINE__ )(void * addr, int num) {
377
- return CRYPTO_realloc (addr,num,file,line);
377
+ return CRYPTO_realloc (addr,num,file.ptr ,line);
378
378
}
379
379
auto OPENSSL_realloc_clean (string file = __FILE__ , size_t line = __LINE__ )(void * addr,int old_num,int num) {
380
- CRYPTO_realloc_clean(addr,old_num,num,file,line);
380
+ CRYPTO_realloc_clean(addr,old_num,num,file.ptr ,line);
381
381
}
382
382
auto OPENSSL_remalloc (string file = __FILE__ , size_t line = __LINE__ )(void ** addr, int num) {
383
- return CRYPTO_remalloc (cast (char ** )addr,num,file,line);
383
+ return CRYPTO_remalloc (cast (char ** )addr,num,file.ptr ,line);
384
384
}
385
385
alias CRYPTO_free OPENSSL_freeFunc;
386
386
alias CRYPTO_free OPENSSL_free;
387
387
388
388
auto OPENSSL_malloc_locked (string file = __FILE__ , size_t line = __LINE__ )(int num) {
389
- return CRYPTO_malloc_locked (num, file, line);
389
+ return CRYPTO_malloc_locked (num, file.ptr , line);
390
390
}
391
391
alias CRYPTO_free_locked OPENSSL_free_locked;
392
392
@@ -513,7 +513,7 @@ void CRYPTO_set_mem_debug_options(c_long bits);
513
513
c_long CRYPTO_get_mem_debug_options ();
514
514
515
515
auto CRYPTO_push_info (string file = __FILE__ , size_t line = __LINE__ )(const (char )* info) {
516
- return CRYPTO_push_info_ (info, file, line);
516
+ return CRYPTO_push_info_ (info, file.ptr , line);
517
517
}
518
518
int CRYPTO_push_info_ (const (char )* info, const (char )* file, int line);
519
519
int CRYPTO_pop_info ();
@@ -553,7 +553,7 @@ void CRYPTO_mem_leaks_cb(CRYPTO_MEM_LEAK_CB* cb);
553
553
/* die if we have to */
554
554
void OpenSSLDie (const (char )* file,int line,const (char )* assertion);
555
555
void OPENSSL_assert (string file = __FILE__ , size_t line = __LINE__ )(int e) {
556
- if (! e) OpenSSLDie(file, line, " assertion failed" ); // No good way to translate.
556
+ if (! e) OpenSSLDie(file.ptr , line, " assertion failed" ); // No good way to translate.
557
557
}
558
558
559
559
c_ulong* OPENSSL_ia32cap_loc ();
0 commit comments