[PATCH 3 of 4] QUIC: support for setting QUIC methods with LibreSSL

Maxim Dounin mdounin at mdounin.ru
Fri Oct 21 00:10:03 UTC 2022


Hello!

On Tue, Oct 11, 2022 at 02:35:52PM +0400, Sergey Kandaurov wrote:

> # HG changeset patch
> # User Sergey Kandaurov <pluknet at nginx.com>
> # Date 1665484414 -14400
> #      Tue Oct 11 14:33:34 2022 +0400
> # Branch quic
> # Node ID c0165ddcb1c6981f8e5230081f03a277f62d20c3
> # Parent  caced81ce0a9cb218ae8cdd6176c12e0614acee9
> QUIC: support for setting QUIC methods with LibreSSL.
> 
> Setting QUIC methods is converted to use C99 designated initializers
> for simplicity, as LibreSSL 3.6.0 has different SSL_QUIC_METHOD layout.

I'm somewhat sceptical about C99 designated initializers.  These 
aren't supported by MSVC till 2012: in particular, this includes 
all MSVC versions available via wineticks, as well as MSVC 
versions currently used to build nginx win32 binaries.

A more portable solution might be to use run-time initialization 
instead.

[...]

-- 
Maxim Dounin
http://mdounin.ru/



More information about the nginx-devel mailing list