nim-chronos
nim-chronos copied to clipboard
separate TLSFlags TLSVersion to standalone file or import bearssl when defined ssl
https://github.com/status-im/nim-chronos/blob/67f0f1224fe8176cf66c3fc35c74e313906d9658/chronos/streams/tlsstream.nim#L12
TLSVersion
TLSFlags
my proc has params accept TLSVersion TLSFlags also has isSecurity flag, so ssl and non-ssl share same body, I dont want compile bearssl when not defined ssl.
If you do not want to have SSL bundled, just import apps/http/httpserver
.
well, I use my own http server, I define same data structure solve this for now.