* [9fans] /n/sources/patch/tlsbuffer
@ 2013-01-08 23:15 erik quanstrom
0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2013-01-08 23:15 UTC (permalink / raw)
To: 9fans
the buffer isn't big enough for SHA1 hashes, which are larger than MD5
hashes.
- erik
; 9diff devtls.c
/n/sources/plan9/sys/src/9/port/devtls.c:732,738 - devtls.c:732,738
{
OneWay *volatile in;
Block *volatile b;
- uchar *p, seq[8], header[RecHdrLen], hmac[MD5dlen];
+ uchar *p, seq[8], header[RecHdrLen], hmac[MaxMacLen];
int volatile nconsumed;
int len, type, ver, unpad_len;
/n/sources/plan9/sys/src/9/port/devtls.c:1323,1329 - devtls.c:1323,1329
tr = tlsdevs[CONV(c->qid)];
if(tr == nil)
- panic("tlsbread");
+ panic("tlsbwrite");
ty = TYPE(c->qid);
switch(ty) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-08 23:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 23:15 [9fans] /n/sources/patch/tlsbuffer erik quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).