Handshake before BIO pairs using

2008-06-23 Thread Vladimir Sabanov
Hi, all! How can i do handshake before using BIO pairs for encrypt/decrypt, if as transport i use Winsock(WSASend and WSARecv)? some example this is send function: DWORD CSSLTLSLayer::Send(IN OVERLAPPED *pOverlapped, IN WSABUF *pBuffer,

Handshake and BIO

2008-05-27 Thread Vladimir Sabanov
Hi, all! How can i do handshake before using BIO pairs for encrypt/decrypt, if as transport i use Winsock(WSASend and WSARecv)? Thanks for support! Best regards, Vladimir Sabanov. __ OpenSSL Project

problems with BIO pairs and SSL handshake

2008-05-22 Thread Vladimir Sabanov
with handshake. How can i do SSL handshake using BIO and without SSL_accept or SSL_set_accept_state()+SSL_do_handshake. Thanks for support!;) -- Best regards, Vladimir Sabanov mailto:[EMAIL PROTECTED] Software Developer of ApriorIT - A PriorITy choice! ___

Problems with stream decryption

2008-04-25 Thread Vladimir Sabanov
= 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? NOTE: i cannot use SSL_read and SSL_write in this task...:( -- Best regards, Vlad

Encrypt packet

2008-04-25 Thread Vladimir Sabanov
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) prin