On Tue, May 8, 2012 at 9:00 PM, Bin Lu <b...@juniper.net> wrote:

>  If that is the case, why EC_KEY is exposed in ec.h, and how do I make
> use of the functions that requires this object, e.g.
> EVP_PKEY_get1_EC_KEY()?
>

To use functions like these, you don't need the struct details (you'd only
need those to peek at struct members) -- what's exposed in EC_KEY is
sufficient. You can't declare EC_KEY variables in your application code,
but you can have EC_KEY * pointers and can use these with those APIs.
(This is like, for example, FILE * from the standard C library.)

Bodo

Reply via email to