- /* Add some extra attributes */
- if (!add_signed_time(si)) goto err;
-#if 0
- /* Since these are made up attributes lets leave them out */
- if (!add_signed_string(si,"SIGNED STRING")) goto err;
- if (!add_signed_seq2string(si,"STRING1","STRING2")) goto err;
-#endif
+ /* If you do this then you get signing time automatically added */
+ PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, V_ASN1_OBJECT,
+ OBJ_nid2obj(NID_pkcs7_data));