internal DtlsRecordLayer(DatagramTransport transport, TlsContext context, TlsPeer peer, byte contentType) { mTransport = transport; mContext = context; mPeer = peer; mInHandshake = true; mCurrentEpoch = new DtlsEpoch(0, new TlsNullCipher(context)); mPendingEpoch = null; mReadEpoch = mCurrentEpoch; mWriteEpoch = mCurrentEpoch; SetPlaintextLimit(16384); }
public AsyncDtlsRecordLayer(TlsHandshakeHash handshakeHash, HandshakeHandler handshakeHandler, IChannel channel, TlsContext context, TlsPeer peer) { this.handshakeHash = handshakeHash; this.channel = channel; this.handshakeHandler = handshakeHandler; this.peer = peer; this.inHandshake = true; this.currentEpoch = new AsyncDtlsEpoch(0, new TlsNullCipher(context)); this.pendingEpoch = null; this.readEpoch = currentEpoch; this.writeEpoch = currentEpoch; SetPlaintextLimit(MAX_FRAGMENT_LENGTH); }
internal DtlsRecordLayer(DatagramTransport transport, TlsContext context, TlsPeer peer, byte contentType) { this.mTransport = transport; this.mContext = context; this.mPeer = peer; this.mInHandshake = true; this.mCurrentEpoch = new DtlsEpoch(0, new TlsNullCipher(context)); this.mPendingEpoch = null; this.mReadEpoch = mCurrentEpoch; this.mWriteEpoch = mCurrentEpoch; SetPlaintextLimit(MAX_FRAGMENT_LENGTH); }