Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SSLEngine BUFFER_UNDERFLOW after handshaking is complete

843811May 10 2008 — edited May 12 2008
Hi,

I am having some issues with SSL Handshaking and I have given the details below.

I am using Jdk version 1.5.0_6 in Sun Solaris

After SSLEngine has returned the Status = OK and HandshakeStatus = FINISHED calling unwrap() again why is the handshakestatus = NOT_HANDSHAKING and status = BUFFER_UNDERFLOW

Even though my iNetBuffer has data inNetBuffer: java.nio.DirectByteBuffer[pos=37 lim=512 cap=16665] and
The appBuffer: java.nio.DirectByteBuffer[pos=0 lim=33330 cap=33330] has enough capacity.

Why did the SSLEngine not copy the data into the app buffer?

Because of this I have data that is read from the client and it is not getting processed as it is not copied to my app buffer

Regards,
Jana
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2008
Added on May 10 2008
3 comments
868 views