vpn_ext_register_key_agreement()

Add a Key Agreement callback.

Synopsis:

#include <vpnext/vpn_ext_api.h>
 
VPN_EXT_PUBLIC errno_t vpn_ext_register_key_agreement(vpn_ext_context context, const char *api, unsigned int version, const char *mapping, vpn_ext_callback_t callback)

Since:

BlackBerry 10.2.0

Arguments:

context

The VPN Extension context.

api

The API name. Possible values are VPN_EXT_KEYAGREE_*.

version

The API version in the following format: xxxxyyyy where xxxx represents the major version number and yyyy represents the minor version number.

mapping

A JSON string containing the mapping that the callback provides.

callback

The callback function to add.

Library:

libvpn_ext (For the qcc command, use the -l vpn_ext option to link against this library)

Description:

Returns:

EOK

Success.

EINVAL

One or more invalid parameters were specified.