summary refs log tree commit diff stats
path: root/lib/wrappers
diff options
context:
space:
mode:
authordef <dennis@felsin9.de>2016-01-24 13:55:44 +0100
committerdef <dennis@felsin9.de>2016-01-24 13:55:44 +0100
commit44ad71b7e03fc9b6e7bc94b22dde395ee5ddc4df (patch)
treead3b27471d0ff1b5040f33adc2f6fcd59d7872a0 /lib/wrappers
parentb2d716b0b0199be250eecaeacefb5f64a36d20d9 (diff)
downloadNim-44ad71b7e03fc9b6e7bc94b22dde395ee5ddc4df.tar.gz
Fix openssl md5 importcs
Diffstat (limited to 'lib/wrappers')
-rw-r--r--lib/wrappers/openssl.nim11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim
index a227ac98c..05843e2d3 100644
--- a/lib/wrappers/openssl.nim
+++ b/lib/wrappers/openssl.nim
@@ -496,13 +496,12 @@ type
     data: array[MD5_LBLOCK, MD5_LONG]
     num: cuint
 
-{.pragma: ic, importc: "$1".}
 {.push callconv:cdecl, dynlib:DLLUtilName.}
-proc md5_Init*(c: var MD5_CTX): cint{.ic.}
-proc md5_Update*(c: var MD5_CTX; data: pointer; len: csize): cint{.ic.}
-proc md5_Final*(md: cstring; c: var MD5_CTX): cint{.ic.}
-proc md5*(d: ptr cuchar; n: csize; md: ptr cuchar): ptr cuchar{.ic.}
-proc md5_Transform*(c: var MD5_CTX; b: ptr cuchar){.ic.}
+proc md5_Init*(c: var MD5_CTX): cint{.importc: "MD5_Init".}
+proc md5_Update*(c: var MD5_CTX; data: pointer; len: csize): cint{.importc: "MD5_Update".}
+proc md5_Final*(md: cstring; c: var MD5_CTX): cint{.importc: "MD5_Final".}
+proc md5*(d: ptr cuchar; n: csize; md: ptr cuchar): ptr cuchar{.importc: "MD5".}
+proc md5_Transform*(c: var MD5_CTX; b: ptr cuchar){.importc: "MD5_Transform".}
 {.pop.}
 
 from strutils import toHex,toLower