kw_delete_private_keys()

kw_delete_private_keys()#

Deletes private keys from the given JSON object. Private keys are identified by names that begin with a single underscore (_).

Prototype

int kw_delete_private_keys(
    json_t *kw  // NOT owned
);

Parameters

Key

Type

Description

kw

json_t *

A JSON object from which private keys will be removed. The object is not owned by the function.


Return Value

Returns 0 on success.

Notes

This function only removes private keys at the first level of the JSON object. It does not perform a deep traversal.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples