Hi,

>From the code:
http://cvs.openssl.org/fileview?f=openssl/crypto/pkcs7/pk7_doit.c&v=1.79.2.1

Can this line be removed ?
ri=sk_PKCS7_RECIP_INFO_value(rsk,0);

The value is asked again 2 lines bottom. sk_value is only a getter,
thus it does not even change the value which could modify the
behaviour for the later code, if I am not mistaken.

void *sk_value(const _STACK *st, int i)
{
    if(!st || (i < 0) || (i >= st->num)) return NULL;
    return st->data[i];
}

Please englighten me about it and thank you in advance ! :-)

Best Regards,
Laszlo Papp
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to