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 882b92a commit 78dd0c9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/GnuTLS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -458,17 +458,19 @@ function __init__()
and contains known security vulnerabilities. Please upgrade to a
more recent version."""
warn(msg)

end
ccall((:gnutls_global_set_mem_functions,gnutls),Void,
(Ptr{Void},Ptr{Void},Ptr{Void},Ptr{Void},Ptr{Void}),
cglobal(:jl_gc_counted_malloc), # Malloc
cglobal(:jl_gc_counted_malloc), # Secure Malloc
C_NULL, # is_secure (may be NULL)
cglobal(:realloc), # Realloc
cglobal(:jl_gc_counted_free)) # Free
ccall((:gnutls_global_set_log_function,gnutls),Void,
(Ptr{Void},),cfunction(logging_func,Void,(Int32,Ptr{Uint8})))
ccall((:gnutls_global_init,gnutls),Int32,())
# ccall((:gnutls_global_set_mem_functions,gnutls),Void,
# (Ptr{Void},Ptr{Void},Ptr{Void},Ptr{Void},Ptr{Void}),
# cglobal(:jl_gc_counted_malloc), # Malloc
# cglobal(:jl_gc_counted_malloc), # Secure Malloc
# C_NULL, # is_secure (may be NULL)
# cglobal(:realloc), # Realloc
# cglobal(:jl_gc_counted_free)) # Free
# ccall((:gnutls_global_set_log_function,gnutls),Void,
# (Ptr{Void},),cfunction(logging_func,Void,(Int32,Ptr{Uint8})))


gnutls_version >= v"3.0" && begin
global system_certificate_store = CertificateStore()
Expand Down

0 comments on commit 78dd0c9

Please sign in to comment.