Re: Does BIO_read() behave differently on diff architectures?

2019-08-12 Thread Venkata Veldanda via openssl-users
s negative).   One possible fix:  Change "char *ptr = buf;" to "unsigned char *ptr = buf;", then you should get the expected output. Regards, Andrew.   From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Venkata Veldanda via openssl-users

Does BIO_read() behave differently on diff architectures?

2019-08-09 Thread Venkata Veldanda via openssl-users
Hi Experts, I am using openssl 1.0.2  I recently moved my app from a PPC to x86 platform (application is compiled on the respective platform) where I met an issue with BIO_read().  I read a 20bytes of data using BIO_read like following.. int    res = BIO_read(bio, buf, 20);char *ptr = buf; The