Subsections

S/MIME capabilities

These functions allow for S/MIME capability manipulation of certificates.

These capabilities are an extension to the X.509 standard to accomodate the S/MIME capabilities that a given message recipient has. They are included in the certificate so the message sender has a way to know about them (see RFC 4262 and its references for details).

Each capability is a tuple with an unique OID key1 plus a data binary string.

CST_set_capability

int CST_set_capability ( CST * st, const cst_t_seqnum certID, ASN1_OBJECT * oid, unsigned char * data, int data_length)

Set S/MIME Capability for a given certificate
Parameters

Returns

Errors

CST_get_capability_data

unsigned char* CST_get_capability_data (CST * st, const cst_t_seqnum certID, ASN1_OBJECT * oid, int * data_length)

Get S/MIME Capability for given cert
Parameters

Returns

Errors

CST_get_capabilities

CST_STACK_OF_ASN1_OBJECT* CST_get_capabilities (CST * st, const cst_t_seqnum certID)

Get S/MIME Capabilities list for given cert
Parameters

Returns

Errors

CST_is_capability

int CST_is_capability (CST * st, const cst_t_seqnum certID, ASN1_OBJECT * oid)

Returns TRUE if capability exists
Parameters

Returns

Errors

CST_delete_capability

int CST_delete_capability (CST * st, const cst_t_seqnum certID, ASN1_OBJECT * oid)

Delete capabilities
Parameters

Returns

Errors

Elvis Pfutzenreuter 2006-02-17