Don't you know how much data you've read that you're about to decrypt?
in your code template, you showed the sendign routine doing... nread = recv(sock, buffer, 25, 0);isn't the recieving routine doing somethign similar? well, nread would be the length you need, no?
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org