Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 8181:3cb4f16426a5 quic
Introduced quic_version macro, uint16/uint32 routines ported.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 28 Feb 2020 13:09:52 +0300 |
parents | 01dc595de244 |
children | b28ea685a56e |
comparison
equal
deleted
inserted
replaced
8180:01dc595de244 | 8181:3cb4f16426a5 |
---|---|
269 if (level == ssl_encryption_initial) { | 269 if (level == ssl_encryption_initial) { |
270 *p++ = 0xc0; // initial, packet number len | 270 *p++ = 0xc0; // initial, packet number len |
271 } else if (level == ssl_encryption_handshake) { | 271 } else if (level == ssl_encryption_handshake) { |
272 *p++ = 0xe0; // handshake, packet number len | 272 *p++ = 0xe0; // handshake, packet number len |
273 } | 273 } |
274 *p++ = 0xff; | 274 p = ngx_quic_write_uint32(p, quic_version); |
275 *p++ = 0x00; | |
276 *p++ = 0x00; | |
277 *p++ = 0x18; | |
278 *p++ = qc->scid.len; | 275 *p++ = qc->scid.len; |
279 p = ngx_cpymem(p, qc->scid.data, qc->scid.len); | 276 p = ngx_cpymem(p, qc->scid.data, qc->scid.len); |
280 *p++ = qc->dcid.len; | 277 *p++ = qc->dcid.len; |
281 p = ngx_cpymem(p, qc->dcid.data, qc->dcid.len); | 278 p = ngx_cpymem(p, qc->dcid.data, qc->dcid.len); |
282 if (level == ssl_encryption_initial) { | 279 if (level == ssl_encryption_initial) { |