in src/states.js [175:183]
async recvChangeCipherSpec(bytes) {
if (this.conn._hasSeenChangeCipherSpec) {
throw new TLSError(ALERT_DESCRIPTION.UNEXPECTED_MESSAGE);
}
if (bytes.byteLength !== 1 || bytes[0] !== 1) {
throw new TLSError(ALERT_DESCRIPTION.UNEXPECTED_MESSAGE);
}
this.conn._hasSeenChangeCipherSpec = true;
}