summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2016-12-05 20:12:00 +0100
committerGitHub <noreply@github.com>2016-12-05 20:12:00 +0100
commit3d36a1c9497ddb7976095e60c52a7b4e9de33ef7 (patch)
treefdf9f1b7027c8a5f989b7acba495e2adfc951ac4 /lib
parentd6ab21eed53df590b25742c06ac4dff908d8b27d (diff)
parent58e2fbc9350053374db1735b8f3573e1f5718a21 (diff)
downloadNim-3d36a1c9497ddb7976095e60c52a7b4e9de33ef7.tar.gz
Merge pull request #5093 from yglukhov/BIO_new_mem_buf
Added BIO_new_mem_buf
Diffstat (limited to 'lib')
-rw-r--r--lib/wrappers/openssl.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim
index 1bd02eaf0..5521476d9 100644
--- a/lib/wrappers/openssl.nim
+++ b/lib/wrappers/openssl.nim
@@ -293,6 +293,8 @@ proc SSL_get_error*(s: SslPtr, ret_code: cInt): cInt{.cdecl, dynlib: DLLSSLName,
 proc SSL_accept*(ssl: SslPtr): cInt{.cdecl, dynlib: DLLSSLName, importc.}
 proc SSL_pending*(ssl: SslPtr): cInt{.cdecl, dynlib: DLLSSLName, importc.}
 
+proc BIO_new_mem_buf*(data: pointer, len: cint): BIO{.cdecl,
+    dynlib: DLLSSLName, importc.}
 proc BIO_new_ssl_connect*(ctx: SslCtx): BIO{.cdecl,
     dynlib: DLLSSLName, importc.}
 proc BIO_ctrl*(bio: BIO, cmd: cint, larg: int, arg: cstring): int{.cdecl,