Browse Source

add CAChain type

master
nixo 2 years ago
parent
commit
091fe1a3ac
  1. 2
      src/OpenSSL.jl
  2. 5
      src/types.jl

2
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")

5
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}

Loading…
Cancel
Save