equal
deleted
inserted
replaced
424 int really = readFully( |
424 int really = readFully( |
425 s, buf, exlen, contentLen + headerSize - exlen); |
425 s, buf, exlen, contentLen + headerSize - exlen); |
426 if (really < 0) { |
426 if (really < 0) { |
427 throw new SSLException("SSL peer shut down incorrectly"); |
427 throw new SSLException("SSL peer shut down incorrectly"); |
428 } |
428 } |
429 |
429 } |
430 // now we've got a complete record. |
430 |
431 count = contentLen + headerSize; |
431 // now we've got a complete record. |
432 exlen = 0; |
432 count = contentLen + headerSize; |
433 } |
433 exlen = 0; |
434 |
434 |
435 if (debug != null && Debug.isOn("record")) { |
435 if (debug != null && Debug.isOn("record")) { |
436 if (count < 0 || count > (maxRecordSize - headerSize)) { |
436 if (count < 0 || count > (maxRecordSize - headerSize)) { |
437 System.out.println(Thread.currentThread().getName() |
437 System.out.println(Thread.currentThread().getName() |
438 + ", Bad InputRecord size" + ", count = " + count); |
438 + ", Bad InputRecord size" + ", count = " + count); |
500 int really = readFully( |
500 int really = readFully( |
501 s, v2Buf, exlen - headerSize, len + headerSize - exlen); |
501 s, v2Buf, exlen - headerSize, len + headerSize - exlen); |
502 if (really < 0) { |
502 if (really < 0) { |
503 throw new EOFException("SSL peer shut down incorrectly"); |
503 throw new EOFException("SSL peer shut down incorrectly"); |
504 } |
504 } |
505 |
505 } |
506 // now we've got a complete record. |
506 |
507 exlen = 0; |
507 // now we've got a complete record. |
508 } |
508 exlen = 0; |
|
509 |
509 hashInternal(buf, 2, 3); |
510 hashInternal(buf, 2, 3); |
510 hashInternal(v2Buf, 0, len); |
511 hashInternal(v2Buf, 0, len); |
511 V2toV3ClientHello(v2Buf); |
512 V2toV3ClientHello(v2Buf); |
512 v2Buf = null; |
513 v2Buf = null; |
513 lastHashed = count; |
514 lastHashed = count; |