Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Aug 31, 2015
1 parent c95773f commit d0ce480
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/GnuTLS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ isdefined(Base, :__precompile__) && __precompile__(true)

module GnuTLS

include("../deps/deps.jl")

export handshake!, associate_stream, set_priority_string!, set_credentials!, CertificateStore, Certificate
import Base: isopen, write, read, readall, readavailable, close, show, nb_available, eof

Expand Down Expand Up @@ -437,6 +435,15 @@ function logging_func(level::Int32,msg::Ptr{Uint8})
nothing
end

macro set_gnutls()
deps = readall("../deps/deps.jl")
gnutls_path = bytestring(match(r"gnutls \"(.*?)\"", deps).captures[1])
quote
const $(esc(:gnutls)) = $gnutls_path
end
end

@set_gnutls

function __init__()
global const gnutls_version = convert(VersionNumber,
Expand Down

0 comments on commit d0ce480

Please sign in to comment.