Bodo Moeller wrote:
> [...]
> #undef PEM_read_PrivateKey
> EVP_PKEY *PEM_read_PrivateKey(FILE *fp,EVP_PKEY **x, pem_password_cb *cb)
> {
>     return PEM_read_PrivateKey_ex(fp, x, cb, NULL);
> }

two notes:

1) on compilers that support inlining, defining the above function
with *static* qualifiers in the include file would build the same
executable, avoiding the additional define/undef coding.

2) some compiler, specially on NT, like to call dynamically linked
function with non-C calling conventions (because someone noticed
that a few nanoseconds can be saved when it is the callee to free the
stack, rather than the caller). This must be avoided, because the
callback will end up being called with one more (NULL) parameter.

Ciao
Ale
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to