On Fri, May 25, 2012, Oleksiy Lukin wrote:

>     int outlen;
...
>     } else if (EVP_PKEY_decrypt(ctx, NULL, (size_t *) & outlen, encoded,
> encoded_len) <= 0) { // Determine buffer length

This will cause problems if sizeof(size_t) != sizeof(int). Don't do that: make
outlen of type size_t.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to