Stella Power <[EMAIL PROTECTED]> writes:

> okidokey, the code is attached.
> The encryption/decryption function is in do_crypt.c
> 

hi,

i think you have the problem when you get the size of your buffer.

inlen = strlen(i_p);

you are treating the result as a string. this is not correct because it
could have lots of \0 characters. so strlen() will stop at the first
\0 and give you a wrong length. you must treat your buffers as buffers
with any characters not as simple strings (encrypt does not return
strings).

hope this helps.

regards,

aleix

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to