(session, which)
| 113 | } |
| 114 | |
| 115 | function handshakeDigestResult(session, which) |
| 116 | { |
| 117 | let H, res; |
| 118 | |
| 119 | if (which & MD5) |
| 120 | H = session.handshakeDigests.MD5.close(true); |
| 121 | if (which & SHA1) { |
| 122 | res = session.handshakeDigests.SHA1.close(true); |
| 123 | H = H ? H.concat(res) : res; |
| 124 | } |
| 125 | if (which & SHA256) { |
| 126 | res = session.handshakeDigests.SHA256.close(true); |
| 127 | H = H ? H.concat(res) : res; |
| 128 | } |
| 129 | return H; |
| 130 | } |
| 131 | |
| 132 | const handshakeProtocol = { |
| 133 | name: "handshakeProtocol", |
no test coverage detected