doc = "This option generates a PKCS #7 structure containing a signature for the provided data. The data are stored within the structure. The signer certificate has to be specified using --load-certificate and --load-privkey.";
};
+
flag = {
name = p7-detached-sign;
descrip = "Signs using a detached PKCS #7 structure";
doc = "This option generates a PKCS #7 structure containing a signature for the provided data. The signer certificate has to be specified using --load-certificate and --load-privkey.";
};
+flag = {
+ name = p7-include-cert;
+ descrip = "The signer's certificate will be included in the cert list.";
+ doc = "This options works with --p7-sign or --p7-detached-sign";
+};
+
flag = {
name = p7-time;
descrip = "Will include a timestamp in the PKCS #7 structure";
if (HAVE_OPT(P7_TIME))
flags |= GNUTLS_PKCS7_INCLUDE_TIME;
+ if (HAVE_OPT(P7_INCLUDE_CERT))
+ flags |= GNUTLS_PKCS7_INCLUDE_CERT;
+
ret = gnutls_pkcs7_init(&pkcs7);
if (ret < 0) {
fprintf(stderr, "p7_init: %s\n", gnutls_strerror(ret));