On Fri, Apr 25, 2008 at 03:40:00PM +0300, Vladimir Sabanov wrote: > Hi! I have some transport which based on winsock. Client(FTPS) send to me > some data over SSL, and i receive it with (for example): > > ... > if (WSARecv(AcceptSocket, &DataBuf, 1, &RecvBytes, &Flags, > &AcceptOverlapped, NULL) == SOCKET_ERROR){ > if (WSAGetLastError() != WSA_IO_PENDING) > printf("Error occured at WSARecv()\n"); > } > ... > > DataBuf is complete packet. > Question: > how can i decrypt received data in DataBuf, if i have certificate, puclic and > private keys?
You can't. SSL is a multi-step key-agreement protocol for channel encryption, not a protocol for moving pre-encrypted messages that can be decrypted non-interactively on the other side. > NOTE: i cannot use SSL_read and SSL_write in this task...:( Then you can't do SSL. -- Viktor. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]