Hi Henrik Nordstrom,
 
 
I am working as a software developer in India
I am having some problem with the SSL_write() function.
I am new to the SSL standard and i am in the learning stage
I have been given some assignments which involves lot of SSL too.
I dont know much about SSL, and what you ask you a question regarding failing of SSL_write() fucntion.
My code  looks likes this
SSL_write(sslConnection, data + bytesTransmitted, bytesToSend);
This SSL_write fucntion fails and returns 5 as error code.
Error code is retrieved by --> nError = SSL_get_error(sslConnection, bytesSent);
Error string is retrieved by --> ERR_error_string(nError, str);
Erro string which i get is --> error:00000005::lib(0) :func(0) : bad asn1 object header
 
Now my question is what does the string "bad asn1 object header" means? I dont see any help regarding this.
Why does the function SSL_write() function fails? Is this some IO related error and if yes, how do i over come it.
I also read your friends comments regarding solution of this problem, which said...
> char buf[20];
> RAND_seed(&buf,sizeof buf) ;
He did the above change in the code and got it working.
 
I am using a windows 2K machine.
 
Your help would be of great help for me in solving my problem...
 
waiting for your reply.......
 
Best Regards
Sunil Rashinkar
Persistent Systems Pvt. Ltd.
Ph. +91 20 5678900 Ext 821
 

Reply via email to