digest: save context in sipe_digest_md5/sha1_update()
commit28dcf2a0dd3bd7c65553eac33a7f32b470a7ceff
authorStefan Becker <chemobejk@gmail.com>
Wed, 23 Nov 2011 18:28:38 +0000 (23 20:28 +0200)
committerStefan Becker <chemobejk@gmail.com>
Wed, 23 Nov 2011 18:28:38 +0000 (23 20:28 +0200)
tree5def402c884d31905089ae67cf352bd05dfda5a6
parent48318dc54f4c04b8c3f18749002f916fd6d77a60
digest: save context in sipe_digest_md5/sha1_update()

TLS needs to calculate the hashes multiple time but finalizing the PK11
context destroys the collected information. Store the context before
calculating the digest and restore it afterwards.

Now TLS calculates the correct MACs, i.e. the tester can now
successfully complete a handshake with the OpenSSL server. Also the
plugin now goes through to the final TLS-DSK handshake with the Lync
server, but as we have a hard-coded limit of 3 REGISTER retries we abort
too early to succeed.

Disabled crypto secrets debugging in sipe-tls.c again.
src/core/sipe-digest-nss.c
src/core/sipe-tls.c