tlshand: cleanup 36 -> MD5dlen+SHA1dlen

This commit is contained in:
cinap_lenrek 2014-04-26 18:09:26 +02:00
parent 3b1a0ab1f3
commit 28f7f3f9d7

View file

@ -804,7 +804,7 @@ tlsClient2(int ctl, int hand, uchar *csid, int ncsid, uchar *cert, int certlen,
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");