Parameters for creating signed content objects. More...
Data Fields | |
int | api_version |
int | sp_flags |
struct ccn_charbuf * | template_ccnb |
unsigned char | pubid [32] |
enum ccn_content_type | type |
int | freshness |
Parameters for creating signed content objects.
A pointer to one of these may be passed to ccn_sign_content() for cases where the default signing behavior does not suffice. For the default (sign with the user's default key pair), pass NULL for the pointer.
The recommended way to us this is to create a local variable:
struct ccn_signing_params myparams = CCN_SIGNING_PARAMS_INIT;
and then fill in the desired fields. This way if additional parameters are added, it won't be necessary to go back and modify exiting clients.
The template_ccnb may contain a ccnb-encoded SignedInfo to supply selected fields from under the direction of sp_flags. It is permitted to omit unneeded fields from the template, even if the schema says they are manditory.
If the pubid is all zero, the user's default key pair is used for signing. Otherwise the corresponding private key must have already been supplied to the handle using ccn_load_private_key() or equivalent.
The default signing key is obtained from ~/.ccnx/.ccnx_keystore unless the CCNX_DIR is used to override the directory location.
Definition at line 701 of file ccn.h.
Definition at line 707 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccn_sign_content(), ccnd_answer_req(), and ccnd_init_service_ccnb().
unsigned char ccn_signing_params::pubid[32] |
Definition at line 705 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccn_get_public_key(), ccn_sign_content(), and ccnd_init_internal_keystore().
Definition at line 703 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccn_sign_content(), ccnd_init_service_ccnb(), main(), and seqw_next_cob().
Definition at line 704 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccnd_init_service_ccnb(), and main().
Definition at line 706 of file ccn.h.
Referenced by ccn_sign_content(), ccnd_answer_req(), ccnd_init_service_ccnb(), and main().