mirror of
https://github.com/0intro/conterm
synced 2024-11-22 05:41:28 +03:00
devssl fix (should not matter)
This commit is contained in:
parent
e3f50bcc5e
commit
43b112897a
@ -623,7 +623,8 @@ sslbread(Chan *c, long n, ulong o)
|
|||||||
if(b == nil)
|
if(b == nil)
|
||||||
error("ssl message too short (digesting)");
|
error("ssl message too short (digesting)");
|
||||||
checkdigestb(s, b);
|
checkdigestb(s, b);
|
||||||
b->rp += s->diglen;
|
pullblock(&b, s->diglen);
|
||||||
|
len -= s->diglen;
|
||||||
break;
|
break;
|
||||||
case Sdigenc:
|
case Sdigenc:
|
||||||
b = decryptb(s, b);
|
b = decryptb(s, b);
|
||||||
@ -631,7 +632,7 @@ sslbread(Chan *c, long n, ulong o)
|
|||||||
if(b == nil)
|
if(b == nil)
|
||||||
error("ssl message too short (dig+enc)");
|
error("ssl message too short (dig+enc)");
|
||||||
checkdigestb(s, b);
|
checkdigestb(s, b);
|
||||||
b->rp += s->diglen;
|
pullblock(&b, s->diglen);
|
||||||
len -= s->diglen;
|
len -= s->diglen;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user