ccn_signing_params Struct Reference

Parameters for creating signed content objects. More...


Data Fields

int api_version
int sp_flags
struct ccn_charbuftemplate_ccnb
unsigned char pubid [32]
enum ccn_content_type type
int freshness


Detailed Description

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 793 of file ccn.h.


Field Documentation

Definition at line 794 of file ccn.h.

unsigned char ccn_signing_params::pubid[32]


The documentation for this struct was generated from the following file:

Generated on Thu Feb 16 00:44:33 2012 for Content-Centric Networking in C by  doxygen 1.5.6