Data Fields | |
int | api_version |
int | sp_flags |
struct ccn_charbuf * | template_ccnb |
unsigned char | pubid [32] |
enum ccn_content_type | type |
int | freshness |
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 793 of file ccn.h.
Definition at line 795 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccn_sign_content(), ccnd_init_service_ccnb(), ccnr_init_policy_cob(), ccnr_init_policy_link_cob(), ccnr_init_service_ccnb(), localStore(), main(), r_proto_continue_enumeration(), seqw_next_cob(), storeHandler(), and SyncSignBuf().
struct ccn_charbuf* ccn_signing_params::template_ccnb [read] |
Definition at line 796 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccnd_init_service_ccnb(), ccnr_init_service_ccnb(), main(), and SyncSignBuf().
unsigned char ccn_signing_params::pubid[32] |
Definition at line 797 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccn_get_public_key(), ccn_sign_content(), ccnd_init_internal_keystore(), and ccnr_init_repo_keystore().
Definition at line 798 of file ccn.h.
Referenced by ccn_sign_content(), ccnd_answer_req(), ccnd_init_service_ccnb(), ccnr_answer_req(), ccnr_init_policy_cob(), ccnr_init_policy_link_cob(), ccnr_init_service_ccnb(), localStore(), main(), storeHandler(), and SyncSignBuf().
Definition at line 799 of file ccn.h.
Referenced by ccn_chk_signing_params(), ccn_sign_content(), ccnd_answer_req(), ccnd_init_service_ccnb(), ccnr_answer_req(), ccnr_init_policy_cob(), ccnr_init_service_ccnb(), r_proto_bulk_import(), r_proto_continue_enumeration(), r_proto_start_write(), and r_proto_start_write_checked().