We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beab824 commit 625928eCopy full SHA for 625928e
deimos/openssl/crypto.d
@@ -119,6 +119,7 @@ module deimos.openssl.crypto;
119
import deimos.openssl._d_util;
120
121
import core.stdc.stdlib;
122
+import std.string : toStringz;
123
124
public import deimos.openssl.e_os2;
125
@@ -368,7 +369,7 @@ int MemCheck_off()() { return CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE); }
368
369
alias CRYPTO_is_mem_check_on is_MemCheck_on;
370
371
auto OPENSSL_malloc(string file = __FILE__, size_t line = __LINE__)(int num) {
- return CRYPTO_malloc(num,file,line);
372
+ return CRYPTO_malloc(num,file.toStringz,line);
373
}
374
auto OPENSSL_strdup(string file = __FILE__, size_t line = __LINE__)(const(char)* str) {
375
return CRYPTO_strdup(str,file,line);
0 commit comments