Advertisement
trideceth12

gotofail

May 16th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1. hashOut.data = hashes + SSL_MD5_DIGEST_LEN;
  2. hashOut.length = SSL_SHA1_DIGEST_LEN;
  3. if ((err = SSLFreeBuffer(&hashCtx)) != 0)
  4.     goto fail;
  5. if ((err = ReadyHash(&SSLHashSHA1, &hashCtx)) != 0)
  6.     goto fail;
  7. if ((err = SSLHashSHA1.update(&hashCtx, &clientRandom)) != 0)
  8.     goto fail;
  9. if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
  10.     goto fail;
  11. if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
  12.     goto fail;
  13.     goto fail;  /* MISTAKE! THIS LINE SHOULD NOT BE HERE */
  14. if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0)
  15.     goto fail;
  16.  
  17. err = sslRawVerify(...);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement