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) {

Reply via email to