ref: 28f7f3f9d7b556c2e315a31a046860a00ec68240
parent: 3b1a0ab1f34c8cb8c4e619d9b008207c22c10315
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 26 14:09:26 EDT 2014
tlshand: cleanup 36 -> MD5dlen+SHA1dlen
--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -804,7 +804,7 @@
goto Err;
}
- paddedHashes = pkcs1padbuf(hshashes, 36, c->sec->rsapub->n);
+ paddedHashes = pkcs1padbuf(hshashes, MD5dlen+SHA1dlen, c->sec->rsapub->n);
signedMP = factotum_rsa_decrypt(c->sec->rpc, paddedHashes);
if(signedMP == nil){
tlsError(c, EHandshakeFailure, "factotum_rsa_decrypt: %r");