On Thu, Dec 3, 2009 at 11:34 AM, Frederik Mennes <[email protected]> wrote:
> Hi everyone,
>
> I am using following function to load a private key from a certain slot of a
> HSM:
>         EVP_PKEY *ENGINE_load_private_key(    ENGINE *e,
>                                                const char *key_id,
>                                               UI_METHOD *ui_method,
>                                               void *callback_data);
>
> Can I provide a PIN-code directly to the HSM using this function, i.e. not
> by asking the user to type it in, but by passing the PIN-code as a
> parameter?
>
> If not, is there another function to directly pass a PIN-code to the HSM?
>
You can implement a ui_method and pass in the callback_data the PIN.

-- 
Thomas Harning Jr.

Reply via email to