cryptPushData returning 0 bytes copied

David Pierre <[email protected]> Thu, 31 Jan 2013 08:37:57 -0800 (PST)
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Hi,

Still testing Cryptlib, I found a strange behaviour : 

- I start a server (no problem on this side)

- I start a client that do multiple connections with a loop. Each time, I
create a session and set attributes, then (after session activation) i send
some data :

fetchString = malloc(Data_Size * sizeof(char));	
for( j = 0; j < Data_Size; j++ )
{
	fetchString[ j ] = 0x63;
}
status = cryptPushData( cryptSession, fetchString, Data_Size, &bytesCopied
);
status = cryptFlushData( cryptSession );

In my test, data_Size = 1. So exchange begins, i saw the "message" on server
side. But after some sessions (it's variable), i get nothing on server side.
So i looked for problem, and i found that cryptPushData on client side
returns a bytesCopied = 0. For example, looping 100 times on this code
(session creation + sending data + closing session) gave me 42 times this
error. I don't see what could be wrong, and i didn't notice anything in
manual that could fit with that case. I free my fetchstring each times, i
also tried with a fixed value, with no more luck.


-- 
View this message in context: http://old.nabble.com/cryptPushData-returning-0-bytes-copied-tp34968013p34968013.html
Sent from the Cryptlib mailing list archive at Nabble.com.


_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.