diff --git a/src/OpenSSL.jl b/src/OpenSSL.jl index d433987..234df29 100644 --- a/src/OpenSSL.jl +++ b/src/OpenSSL.jl @@ -7,7 +7,7 @@ const libssl = "/gnu/store/hcxpkksmbql6s4al8yy2myr25kh4cic0-openssl-1.1.1g/lib/l include("consts.jl") include("evp_md.jl") include("types.jl") -export SSLContext, SSLClient +export SSLContext, SSLClient, CAChain include("methods.jl") diff --git a/src/types.jl b/src/types.jl index 3a4c7bc..944ff15 100644 --- a/src/types.jl +++ b/src/types.jl @@ -8,6 +8,11 @@ struct SSL_Context ptr end ServerMode end +struct CAChain + cert + key +end + mutable struct SSLContext <: IO data::Vector{UInt8} ptr::Ptr{SSL_Context}