Commit 6d92eba
Shigeki Ohtsu
tls: add TLSSocket.getEphemeralKeyInfo()
Returns an object representing a type, name and size of an ephemeral
key exchange in a client connection. Currently only DHE and ECHE are
supported.
This api only works on on a client connection. When it is called on a
server connection, null is returned. When its key exchange is not
ephemeral, an empty object is returned.
PR-URL: #1831
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>1 parent 503f279 commit 6d92ebaCopy full SHA for 6d92eba
File tree
Expand file treeCollapse file tree
5 files changed
+166
-0
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- src
- test/parallel
Expand file treeCollapse file tree
5 files changed
+166
-0
lines changedOpen diff view settings
Collapse file
+14Lines changed: 14 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
809 | 809 | |
810 | 810 | |
811 | 811 | |
| 812 | + |
| 813 | + |
| 814 | + |
| 815 | + |
| 816 | + |
| 817 | + |
| 818 | + |
| 819 | + |
| 820 | + |
| 821 | + |
| 822 | + |
| 823 | + |
| 824 | + |
812 | 825 | |
813 | 826 | |
814 | 827 | |
| ||
887 | 900 | |
888 | 901 | |
889 | 902 | |
| 903 | + |
890 | 904 | |
891 | 905 | |
892 | 906 | |
|
Collapse file
+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
628 | 628 | |
629 | 629 | |
630 | 630 | |
| 631 | + |
| 632 | + |
| 633 | + |
| 634 | + |
| 635 | + |
| 636 | + |
| 637 | + |
631 | 638 | |
632 | 639 | |
633 | 640 | |
|
Collapse file
+45Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1134 | 1134 | |
1135 | 1135 | |
1136 | 1136 | |
| 1137 | + |
1137 | 1138 | |
1138 | 1139 | |
1139 | 1140 | |
| ||
1744 | 1745 | |
1745 | 1746 | |
1746 | 1747 | |
| 1748 | + |
| 1749 | + |
| 1750 | + |
| 1751 | + |
| 1752 | + |
| 1753 | + |
| 1754 | + |
| 1755 | + |
| 1756 | + |
| 1757 | + |
| 1758 | + |
| 1759 | + |
| 1760 | + |
| 1761 | + |
| 1762 | + |
| 1763 | + |
| 1764 | + |
| 1765 | + |
| 1766 | + |
| 1767 | + |
| 1768 | + |
| 1769 | + |
| 1770 | + |
| 1771 | + |
| 1772 | + |
| 1773 | + |
| 1774 | + |
| 1775 | + |
| 1776 | + |
| 1777 | + |
| 1778 | + |
| 1779 | + |
| 1780 | + |
| 1781 | + |
| 1782 | + |
| 1783 | + |
| 1784 | + |
| 1785 | + |
| 1786 | + |
| 1787 | + |
| 1788 | + |
| 1789 | + |
| 1790 | + |
| 1791 | + |
1747 | 1792 | |
1748 | 1793 | |
1749 | 1794 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
236 | 236 | |
237 | 237 | |
238 | 238 | |
| 239 | + |
| 240 | + |
239 | 241 | |
240 | 242 | |
241 | 243 | |
|
Collapse file
test/parallel/test-tls-client-getephemeralkeyinfo.js
Copy file name to clipboard+98Lines changed: 98 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
0 commit comments