From 619a2d6015f80b1b52f4d82d36e73f0391ef18c4 Mon Sep 17 00:00:00 2001 From: nixo Date: Thu, 4 Feb 2021 02:37:29 +0100 Subject: [PATCH] Fix couple of return types --- src/bio.jl | 2 +- src/context.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bio.jl b/src/bio.jl index 4b0292b..5f90d3d 100644 --- a/src/bio.jl +++ b/src/bio.jl @@ -21,7 +21,7 @@ bio_new() = bio_new(s_mem()) function set_bio!(client::SSLClient, rbio, wbio) client.rbio = rbio client.wbio = wbio - ccall((:SSL_set_bio, libssl), Ptr{Cvoid}, (Ptr{Cvoid},Ptr{Cvoid},Ptr{Cvoid}), + ccall((:SSL_set_bio, libssl), Cvoid, (Ptr{Cvoid},Ptr{Cvoid},Ptr{Cvoid}), client.ssl, rbio, wbio) end diff --git a/src/context.jl b/src/context.jl index c4e7f2b..cc6a0d1 100644 --- a/src/context.jl +++ b/src/context.jl @@ -1,5 +1,5 @@ function set_options!(ctx::SSLContext, options::UInt32) - ccall((:SSL_CTX_set_options, libssl), Ptr{Cvoid}, (Ptr{Cvoid}, Clong), + ccall((:SSL_CTX_set_options, libssl), Clong, (Ptr{Cvoid}, Clong), ctx.ptr, options) nothing end