devtls: fix hmac buffer size for SHA1 hashes (from erik)
the buffer isn't big enough for SHA1 hashes, which are larger than MD5 hashes.
This commit is contained in:
parent
2de4e31f56
commit
77438f99c8
|
@ -732,7 +732,7 @@ tlsrecread(TlsRec *tr)
|
||||||
{
|
{
|
||||||
OneWay *volatile in;
|
OneWay *volatile in;
|
||||||
Block *volatile b;
|
Block *volatile b;
|
||||||
uchar *p, seq[8], header[RecHdrLen], hmac[MD5dlen];
|
uchar *p, seq[8], header[RecHdrLen], hmac[MaxMacLen];
|
||||||
int volatile nconsumed;
|
int volatile nconsumed;
|
||||||
int len, type, ver, unpad_len;
|
int len, type, ver, unpad_len;
|
||||||
|
|
||||||
|
@ -1323,7 +1323,7 @@ tlsbwrite(Chan *c, Block *b, ulong offset)
|
||||||
|
|
||||||
tr = tlsdevs[CONV(c->qid)];
|
tr = tlsdevs[CONV(c->qid)];
|
||||||
if(tr == nil)
|
if(tr == nil)
|
||||||
panic("tlsbread");
|
panic("tlsbwrite");
|
||||||
|
|
||||||
ty = TYPE(c->qid);
|
ty = TYPE(c->qid);
|
||||||
switch(ty) {
|
switch(ty) {
|
||||||
|
|
Loading…
Reference in a new issue