consistenly use snake case for wrapper symbols
This commit is contained in:
parent
d5c74f5ce2
commit
b65c4f4373
|
@ -150,10 +150,11 @@ proc handleMsg(ctx: QuicP2PContext, msg: string, peerAddr: ptr SockAddr,
|
|||
proc initContext(sock: AsyncSocket, certChainPath: string, keyPath: string,
|
||||
streamOpenCb: typeof(quicly_stream_open_t.cb)):
|
||||
QuicP2PContext =
|
||||
var tlsCtx = ptls_context_t(randomBytes: ptlsOpensslRandomBytes,
|
||||
getTime: addr ptlsGetTime,
|
||||
keyExchanges: ptlsOpensslKeyExchanges,
|
||||
cipherSuites: ptlsOpensslCipherSuites)
|
||||
|
||||
var tlsCtx = ptls_context_t(randomBytes: ptls_openssl_random_bytes,
|
||||
getTime: addr ptls_get_time,
|
||||
keyExchanges: ptls_openssl_key_exchanges,
|
||||
cipherSuites: ptls_openssl_cipher_suites)
|
||||
quicly_amend_ptls_context(addr tlsCtx)
|
||||
result = QuicP2PContext(sock: sock,
|
||||
streamOpen: quicly_stream_open_t(cb: streamOpenCb),
|
||||
|
|
Loading…
Reference in New Issue