Esempio n. 1
0
 internal void SetEncryption(RecordEncrypt renc)
 {
     if (ptr != basePtr)
     {
         FlushInner();
     }
     this.renc = renc;
     PrepNew();
 }
Esempio n. 2
0
 internal OutputRecord(Stream sub)
 {
     this.sub               = sub;
     buffer                 = new byte[16384 + 500];
     version                = 0;
     recordType             = -1;
     splitMode              = MODE_NORMAL;
     extra                  = null;
     countHandshake         = 0;
     countAppData           = 0;
     thresholdZeroHandshake = 0;
     thresholdZeroAppData   = 0;
     extra2                 = new byte[500];
     renc = new RecordEncryptPlain();
     PrepNew();
 }