hi.
i am dealing with a PKCS7 SignedAndEnveloped data. i construct a
PKCS7 structure by given DER encoded data. then use function
PKCS7_dataDecode() decoded it, the function return a BIO pointer. Use
this bio and BIO_read, i thought i can get the clear data. But when i
read it into one buffer byte by byte, the funciotn return 1. after i
have read some data and want more, it return 0(only occur once). i
though it stand for end of the data. but when i call BIO_read, it still
has data.
why? how can i adjust then end of data. The SSLeay
Documentation said: when the BIO_read return with -1 , data over. but
when i call it, if has no data, it will always return 0. what's more,
when i call BIO_pending, the return value is always great than the
original raw data length. why?
sorry for my poor english, thank you.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]