(session, type)
| 56 | throw new TLSError("changeCipherSpec: bad type"); |
| 57 | }, |
| 58 | packetize(session, type) { |
| 59 | session.traceProtocol(this); |
| 60 | var s = new SSLStream(); |
| 61 | if (type === undefined) type = change_cipher_spec; |
| 62 | s.writeChar(type); |
| 63 | var upper = recordProtocol.packetize(session, recordProtocol.change_cipher_spec, s.getChunk()); |
| 64 | session.writeSeqNum = BigInt(0); // the specification is very ambiguous about the sequence number... |
| 65 | SetupCipher(session, session.connectionEnd); |
| 66 | return upper; |
| 67 | }, |
| 68 | }); |
| 69 | |
| 70 | export default changeCipherSpec; |
nothing calls this directly
no test coverage detected