Commit b5468f5
committed
Pad certificate queries enough to retrieve PQ certs over UDP
An anonymized relay forwards certificate queries to the upstream
resolver over UDP only, and both the resolver and the relay refuse
to return a UDP response larger than the request that triggered
it.
A post-quantum certificate is about 1.3 KB, so a small certificate
probe came back truncated to the classical certificate alone, and
the proxy never learned that the resolver supported X-Wing when it
was reached through a relay.
Pad the large certificate probe well past the response size to fix
this.1 parent d164a54 commit b5468f5
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
351 | 365 | | |
352 | 366 | | |
353 | 367 | | |
| |||
374 | 388 | | |
375 | 389 | | |
376 | 390 | | |
377 | | - | |
| 391 | + | |
378 | 392 | | |
379 | 393 | | |
380 | 394 | | |
| |||
390 | 404 | | |
391 | 405 | | |
392 | 406 | | |
393 | | - | |
| 407 | + | |
394 | 408 | | |
395 | 409 | | |
396 | 410 | | |
| |||
0 commit comments