27 lines
584 B
Nim
27 lines
584 B
Nim
{.passL: "-l quicly -l picotls-core -l picotls-openssl".}
|
|
|
|
import quicly/quicly
|
|
import picotls/picotls
|
|
import picotls/openssl
|
|
|
|
proc main() =
|
|
echo "hello world"
|
|
|
|
#type
|
|
# PtlsGetTime {.pure, final.} = pointer
|
|
#
|
|
# PtlsContext {.importc: "struct ptls_context_t", pure, final,
|
|
# header: "picotls.h".} = object
|
|
# random_bytes: proc(buf: pointer, len: csize_t) {.cdecl.}
|
|
# get_time: ptr PtlsGetTime
|
|
# key_exchanges: ptr ptr PtlsKeyExchangeAlgorithm
|
|
# cipher_suites: ptr ptr PtlsCipherSuite
|
|
# certificates:
|
|
#
|
|
#
|
|
# proc
|
|
#
|
|
#
|
|
#proc main() =
|
|
# ptlsContext =
|