EC_KEY_insert_key_method_data

Sets the key method data of an EC_KEY object, if none has yet been set.

extern (C) nothrow @nogc
void*
EC_KEY_insert_key_method_data
(,
void* data
,
void* function
(
void*
)
dup_func
,
void function
(
void*
)
free_func
,
void function
(
void*
)
clear_free_func
)

Parameters

key .EC_KEY*

EC_KEY object

data void*

opaque data to install.

dup_func void* function
(
void*
)

a function that duplicates |data|.

free_func void function
(
void*
)

a function that frees |data|.

clear_free_func void function
(
void*
)

a function that wipes and frees |data|.

Return Value

Type: void*

the previously set data pointer, or null if |data| was inserted.

Meta