summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7/sign.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-05-11 00:52:46 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-05-11 00:52:46 +0000
commit10243d97fd9d8d3162af7ec4dc582da21703eb62 (patch)
tree0a8690f25889f01e603f6e1ffab965987ab97384 /crypto/pkcs7/sign.c
parentd5a2ea4b73220d58f12b2d6bdd378dc8e0a23bf9 (diff)
Various PKCS#7 related fixes,tidies and comments.
Diffstat (limited to 'crypto/pkcs7/sign.c')
-rw-r--r--crypto/pkcs7/sign.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/crypto/pkcs7/sign.c b/crypto/pkcs7/sign.c
index ccdd6737dd..4a1d998606 100644
--- a/crypto/pkcs7/sign.c
+++ b/crypto/pkcs7/sign.c
@@ -108,13 +108,9 @@ again:
si=PKCS7_add_signature(p7,x509,pkey,EVP_sha1());
if (si == NULL) goto err;
- /* 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));
/* we may want to add more */
PKCS7_add_certificate(p7,x509);