CT_Create_Set_Attributes_Ticket_Info

The function creates an unsigned CKM_SET_ATTRIBUTES ticket.

The function supports length prediction.

See CT_Create_Set_Attributes_Ticket.

Synopsis

CK_RV CT_Create_Set_Attributes_Ticket_Info( 
  /* specify the target */
     CK_MECHANISM_TYPE objectDigestAlg, /* digest alg */
     unsigned char * objectDigest, /* digest of target object */
    unsigned int objectDigestLen,
    /* specify issuer */
     char * issuerRDN,       /* may be NULL or 
                              * DER of DistName or 
                              * Common Name string or
                              * RDN Seq string (CN=Fred+C=USA) */
     unsigned int issuerRDNLen,
 
  /* ticket details */
     CK_MECHANISM_TYPE signatureAlg, /* signature alg */
     unsigned long sno,      /* Attrib Cert serial number */
     char * notBefore,       /* YYYYMMDD string */
     char * notAfter,        /* YYYYMMDD string */
 
  /* attributes on key to modify */
     unsigned long * limit,  /* NULL if no CKA_USAGE_LIMIT */
     char * start,           /* NULL if no CKA_START_DATE */
     char * end,             /* NULL if no CKA_END_DATE */
     char * cert,            /* NULL if no CKA_ADMIN_CERT */
     unsigned int certLen,
 
  /* output */
          void * pTicketInfo,    /* OUT new unsigned ticket returned here */
          unsigned int* puiTicketLen; /* IN/OUT pTicketInfo buffer length */
);