consistenly use snake case for wrapper symbols

This commit is contained in:
Christian Ulrich 2020-11-08 12:49:32 +01:00
parent d5c74f5ce2
commit b65c4f4373
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 5 additions and 4 deletions

View File

@ -150,10 +150,11 @@ proc handleMsg(ctx: QuicP2PContext, msg: string, peerAddr: ptr SockAddr,
proc initContext(sock: AsyncSocket, certChainPath: string, keyPath: string, proc initContext(sock: AsyncSocket, certChainPath: string, keyPath: string,
streamOpenCb: typeof(quicly_stream_open_t.cb)): streamOpenCb: typeof(quicly_stream_open_t.cb)):
QuicP2PContext = QuicP2PContext =
var tlsCtx = ptls_context_t(randomBytes: ptlsOpensslRandomBytes,
getTime: addr ptlsGetTime, var tlsCtx = ptls_context_t(randomBytes: ptls_openssl_random_bytes,
keyExchanges: ptlsOpensslKeyExchanges, getTime: addr ptls_get_time,
cipherSuites: ptlsOpensslCipherSuites) keyExchanges: ptls_openssl_key_exchanges,
cipherSuites: ptls_openssl_cipher_suites)
quicly_amend_ptls_context(addr tlsCtx) quicly_amend_ptls_context(addr tlsCtx)
result = QuicP2PContext(sock: sock, result = QuicP2PContext(sock: sock,
streamOpen: quicly_stream_open_t(cb: streamOpenCb), streamOpen: quicly_stream_open_t(cb: streamOpenCb),