fix broken example (missing server mode)

master
nixo 2020-11-01 21:09:48 +01:00
parent d105d81f5c
commit 8d62ce5f29
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Then, setup the SSL config
const verify_callback(preverify_ok, x509_ctx)::Cint = 1
function init_ssl_context()
ctx = Gemenon.OpenSSL.SSLContext()
ctx = Gemenon.OpenSSL.SSLContext(mode = Gemenon.OpenSSL.ServerMode)
Gemenon.OpenSSL.ca_chain!(ctx, "./cert.crt", "./key.key")
Gemenon.OpenSSL.set_options!(ctx, Gemenon.OpenSSL.SSL_OP_NO_SSLv3)