diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_attr.c')
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_attr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_attr.c b/src/lib/libcrypto/pkcs7/pk7_attr.c index f882ba7795..1a5dc06dc5 100644 --- a/src/lib/libcrypto/pkcs7/pk7_attr.c +++ b/src/lib/libcrypto/pkcs7/pk7_attr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pk7_attr.c,v 1.12 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: pk7_attr.c,v 1.13 2022/11/12 12:11:14 beck Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -79,6 +79,7 @@ PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, STACK_OF(X509_ALGOR) *cap) | |||
79 | return PKCS7_add_signed_attribute(si, NID_SMIMECapabilities, | 79 | return PKCS7_add_signed_attribute(si, NID_SMIMECapabilities, |
80 | V_ASN1_SEQUENCE, seq); | 80 | V_ASN1_SEQUENCE, seq); |
81 | } | 81 | } |
82 | LCRYPTO_ALIAS(PKCS7_add_attrib_smimecap) | ||
82 | 83 | ||
83 | STACK_OF(X509_ALGOR) * | 84 | STACK_OF(X509_ALGOR) * |
84 | PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si) | 85 | PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si) |
@@ -94,6 +95,7 @@ PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si) | |||
94 | ASN1_item_d2i(NULL, &p, cap->value.sequence->length, | 95 | ASN1_item_d2i(NULL, &p, cap->value.sequence->length, |
95 | &X509_ALGORS_it); | 96 | &X509_ALGORS_it); |
96 | } | 97 | } |
98 | LCRYPTO_ALIAS(PKCS7_get_smimecap) | ||
97 | 99 | ||
98 | /* Basic smime-capabilities OID and optional integer arg */ | 100 | /* Basic smime-capabilities OID and optional integer arg */ |
99 | int | 101 | int |
@@ -130,6 +132,7 @@ err: | |||
130 | X509_ALGOR_free(alg); | 132 | X509_ALGOR_free(alg); |
131 | return 0; | 133 | return 0; |
132 | } | 134 | } |
135 | LCRYPTO_ALIAS(PKCS7_simple_smimecap) | ||
133 | 136 | ||
134 | int | 137 | int |
135 | PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid) | 138 | PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid) |
@@ -141,6 +144,7 @@ PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid) | |||
141 | return PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, | 144 | return PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, |
142 | V_ASN1_OBJECT, coid); | 145 | V_ASN1_OBJECT, coid); |
143 | } | 146 | } |
147 | LCRYPTO_ALIAS(PKCS7_add_attrib_content_type) | ||
144 | 148 | ||
145 | int | 149 | int |
146 | PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t) | 150 | PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t) |
@@ -152,6 +156,7 @@ PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t) | |||
152 | return PKCS7_add_signed_attribute(si, NID_pkcs9_signingTime, | 156 | return PKCS7_add_signed_attribute(si, NID_pkcs9_signingTime, |
153 | V_ASN1_UTCTIME, t); | 157 | V_ASN1_UTCTIME, t); |
154 | } | 158 | } |
159 | LCRYPTO_ALIAS(PKCS7_add0_attrib_signing_time) | ||
155 | 160 | ||
156 | int | 161 | int |
157 | PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si, const unsigned char *md, | 162 | PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si, const unsigned char *md, |
@@ -170,3 +175,4 @@ PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si, const unsigned char *md, | |||
170 | } | 175 | } |
171 | return 1; | 176 | return 1; |
172 | } | 177 | } |
178 | LCRYPTO_ALIAS(PKCS7_add1_attrib_digest) | ||