nabto_client_create_private_key()
DESCRIPTION
Create a private key and return the private key as a pem encoded string. The returned pointer should be freed with nabto_client_string_free. This is a utility function and does not alter the state of the client object.
DECLARATION
NABTO_CLIENT_DECL_PREFIX NabtoClientError NABTO_CLIENT_API
nabto_client_create_private_key(NabtoClient* context, char** privateKey)
PARAMETERS
context:
- [in] The context
privateKey:
- [out] The resulting private key.
RETURNS
NABTO_CLIENT_EC_OK
: if the private key is created and available in privateKey.NABTO_CLIENT_EC_UNKNOWN
: if the key could not be created for some unknown reason. This should never happen. If the future has some more specific error cases which can be acted upon programmatically then they will be added as error codes.