Commit 076ec47
crypto: support RFC 2818 compatible checkHost
The 'subject' option should not only accept the values 'always' and
'never' because neither is compatible with RFC 2818, i.e., HTTPS. This
change adds a third value 'default', which implies the behavior that
HTTPS mandates.
The new 'default' case matches the default behavior of OpenSSL for both
DNS names and email addresses.
Future Node.js versions should change the default option value from
'always' to 'default'.
Refs: #36804
PR-URL: #41569
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>1 parent 2478b47 commit 076ec47
File tree
3 files changed
+57
-3
lines changed- doc/api
- lib/internal/crypto
- test/parallel
3 files changed
+57
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2474 | 2478 | | |
2475 | 2479 | | |
2476 | 2480 | | |
2477 | 2481 | | |
2478 | | - | |
| 2482 | + | |
| 2483 | + | |
2479 | 2484 | | |
2480 | 2485 | | |
2481 | 2486 | | |
| |||
2485 | 2490 | | |
2486 | 2491 | | |
2487 | 2492 | | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2488 | 2504 | | |
2489 | 2505 | | |
2490 | 2506 | | |
2491 | 2507 | | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
2492 | 2512 | | |
2493 | 2513 | | |
2494 | 2514 | | |
2495 | 2515 | | |
2496 | | - | |
| 2516 | + | |
| 2517 | + | |
2497 | 2518 | | |
2498 | 2519 | | |
2499 | 2520 | | |
| |||
2509 | 2530 | | |
2510 | 2531 | | |
2511 | 2532 | | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
2512 | 2545 | | |
2513 | 2546 | | |
2514 | 2547 | | |
| |||
5933 | 5966 | | |
5934 | 5967 | | |
5935 | 5968 | | |
| 5969 | + | |
5936 | 5970 | | |
5937 | 5971 | | |
5938 | 5972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
427 | 436 | | |
428 | 437 | | |
429 | 438 | | |
| |||
454 | 463 | | |
455 | 464 | | |
456 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
457 | 475 | | |
458 | 476 | | |
459 | 477 | | |
| |||
0 commit comments