Commit ea6781b
[release-branch.go1.8] crypto/tls: make Config.Clone also clone the GetClientCertificate field
Using GetClientCertificate with the http client is currently completely
broken because inside the transport we clone the tls.Config and pass it
off to the tls.Client. Since tls.Config.Clone() does not pass forward
the GetClientCertificate field, GetClientCertificate is ignored in this
context.
Fixes golang#19264
Change-Id: Ie214f9f0039ac7c3a2dab8ffd14d30668bdb4c71
Signed-off-by: Mike Danese <[email protected]>
Reviewed-on: https://go-review.googlesource.com/37541
Reviewed-by: Filippo Valsorda <[email protected]>
Reviewed-by: Adam Langley <[email protected]>
Run-TryBot: Adam Langley <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
(cherry picked from commit 87649d3)
Reviewed-on: https://go-review.googlesource.com/37946
Run-TryBot: Brad Fitzpatrick <[email protected]>
Reviewed-by: Tom Bergan <[email protected]>1 parent 2327d69 commit ea6781b
2 files changed
Lines changed: 69 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
571 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
572 | 610 | | |
573 | 611 | | |
574 | 612 | | |
575 | | - | |
576 | 613 | | |
577 | 614 | | |
578 | 615 | | |
| |||
581 | 618 | | |
582 | 619 | | |
583 | 620 | | |
584 | | - | |
585 | | - | |
586 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
587 | 624 | | |
588 | 625 | | |
589 | | - | |
590 | 626 | | |
591 | | - | |
592 | | - | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
593 | 631 | | |
594 | 632 | | |
595 | 633 | | |
596 | 634 | | |
597 | | - | |
598 | 635 | | |
599 | 636 | | |
600 | | - | |
601 | 637 | | |
602 | 638 | | |
603 | | - | |
604 | 639 | | |
605 | 640 | | |
606 | | - | |
607 | 641 | | |
608 | 642 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
616 | 663 | | |
617 | | - | |
618 | 664 | | |
619 | 665 | | |
620 | 666 | | |
| |||
0 commit comments