diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_smime.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_smime.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libcrypto/cms/cms_smime.c b/src/lib/libcrypto/cms/cms_smime.c index e9001d0f01..b2930017fd 100644 --- a/src/lib/libcrypto/cms/cms_smime.c +++ b/src/lib/libcrypto/cms/cms_smime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_smime.c,v 1.26 2023/06/11 05:35:43 tb Exp $ */ | 1 | /* $OpenBSD: cms_smime.c,v 1.27 2023/07/08 08:26:26 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -170,6 +170,7 @@ CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags) | |||
170 | 170 | ||
171 | return r; | 171 | return r; |
172 | } | 172 | } |
173 | LCRYPTO_ALIAS(CMS_data); | ||
173 | 174 | ||
174 | CMS_ContentInfo * | 175 | CMS_ContentInfo * |
175 | CMS_data_create(BIO *in, unsigned int flags) | 176 | CMS_data_create(BIO *in, unsigned int flags) |
@@ -187,6 +188,7 @@ CMS_data_create(BIO *in, unsigned int flags) | |||
187 | 188 | ||
188 | return NULL; | 189 | return NULL; |
189 | } | 190 | } |
191 | LCRYPTO_ALIAS(CMS_data_create); | ||
190 | 192 | ||
191 | int | 193 | int |
192 | CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) | 194 | CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) |
@@ -212,6 +214,7 @@ CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags | |||
212 | 214 | ||
213 | return r; | 215 | return r; |
214 | } | 216 | } |
217 | LCRYPTO_ALIAS(CMS_digest_verify); | ||
215 | 218 | ||
216 | CMS_ContentInfo * | 219 | CMS_ContentInfo * |
217 | CMS_digest_create(BIO *in, const EVP_MD *md, unsigned int flags) | 220 | CMS_digest_create(BIO *in, const EVP_MD *md, unsigned int flags) |
@@ -234,6 +237,7 @@ CMS_digest_create(BIO *in, const EVP_MD *md, unsigned int flags) | |||
234 | 237 | ||
235 | return NULL; | 238 | return NULL; |
236 | } | 239 | } |
240 | LCRYPTO_ALIAS(CMS_digest_create); | ||
237 | 241 | ||
238 | int | 242 | int |
239 | CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, const unsigned char *key, | 243 | CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, const unsigned char *key, |
@@ -260,6 +264,7 @@ CMS_EncryptedData_decrypt(CMS_ContentInfo *cms, const unsigned char *key, | |||
260 | 264 | ||
261 | return r; | 265 | return r; |
262 | } | 266 | } |
267 | LCRYPTO_ALIAS(CMS_EncryptedData_decrypt); | ||
263 | 268 | ||
264 | CMS_ContentInfo * | 269 | CMS_ContentInfo * |
265 | CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher, | 270 | CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher, |
@@ -288,6 +293,7 @@ CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher, | |||
288 | 293 | ||
289 | return NULL; | 294 | return NULL; |
290 | } | 295 | } |
296 | LCRYPTO_ALIAS(CMS_EncryptedData_encrypt); | ||
291 | 297 | ||
292 | static int | 298 | static int |
293 | cms_signerinfo_verify_cert(CMS_SignerInfo *si, X509_STORE *store, | 299 | cms_signerinfo_verify_cert(CMS_SignerInfo *si, X509_STORE *store, |
@@ -485,6 +491,7 @@ CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, X509_STORE *store, | |||
485 | 491 | ||
486 | return ret; | 492 | return ret; |
487 | } | 493 | } |
494 | LCRYPTO_ALIAS(CMS_verify); | ||
488 | 495 | ||
489 | int | 496 | int |
490 | CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, | 497 | CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, |
@@ -499,6 +506,7 @@ CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, | |||
499 | 506 | ||
500 | return cms_Receipt_verify(rcms, ocms); | 507 | return cms_Receipt_verify(rcms, ocms); |
501 | } | 508 | } |
509 | LCRYPTO_ALIAS(CMS_verify_receipt); | ||
502 | 510 | ||
503 | CMS_ContentInfo * | 511 | CMS_ContentInfo * |
504 | CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, BIO *data, | 512 | CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, BIO *data, |
@@ -542,6 +550,7 @@ CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, BIO *data, | |||
542 | 550 | ||
543 | return NULL; | 551 | return NULL; |
544 | } | 552 | } |
553 | LCRYPTO_ALIAS(CMS_sign); | ||
545 | 554 | ||
546 | CMS_ContentInfo * | 555 | CMS_ContentInfo * |
547 | CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert, EVP_PKEY *pkey, | 556 | CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert, EVP_PKEY *pkey, |
@@ -609,6 +618,7 @@ CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert, EVP_PKEY *pkey, | |||
609 | 618 | ||
610 | return NULL; | 619 | return NULL; |
611 | } | 620 | } |
621 | LCRYPTO_ALIAS(CMS_sign_receipt); | ||
612 | 622 | ||
613 | CMS_ContentInfo * | 623 | CMS_ContentInfo * |
614 | CMS_encrypt(STACK_OF(X509) *certs, BIO *data, const EVP_CIPHER *cipher, | 624 | CMS_encrypt(STACK_OF(X509) *certs, BIO *data, const EVP_CIPHER *cipher, |
@@ -645,6 +655,7 @@ CMS_encrypt(STACK_OF(X509) *certs, BIO *data, const EVP_CIPHER *cipher, | |||
645 | 655 | ||
646 | return NULL; | 656 | return NULL; |
647 | } | 657 | } |
658 | LCRYPTO_ALIAS(CMS_encrypt); | ||
648 | 659 | ||
649 | static int | 660 | static int |
650 | cms_kari_set1_pkey(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, EVP_PKEY *pk, | 661 | cms_kari_set1_pkey(CMS_ContentInfo *cms, CMS_RecipientInfo *ri, EVP_PKEY *pk, |
@@ -743,6 +754,7 @@ CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert) | |||
743 | 754 | ||
744 | return 0; | 755 | return 0; |
745 | } | 756 | } |
757 | LCRYPTO_ALIAS(CMS_decrypt_set1_pkey); | ||
746 | 758 | ||
747 | int | 759 | int |
748 | CMS_decrypt_set1_key(CMS_ContentInfo *cms, unsigned char *key, size_t keylen, | 760 | CMS_decrypt_set1_key(CMS_ContentInfo *cms, unsigned char *key, size_t keylen, |
@@ -780,6 +792,7 @@ CMS_decrypt_set1_key(CMS_ContentInfo *cms, unsigned char *key, size_t keylen, | |||
780 | 792 | ||
781 | return 0; | 793 | return 0; |
782 | } | 794 | } |
795 | LCRYPTO_ALIAS(CMS_decrypt_set1_key); | ||
783 | 796 | ||
784 | int | 797 | int |
785 | CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, | 798 | CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, |
@@ -805,6 +818,7 @@ CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, | |||
805 | 818 | ||
806 | return 0; | 819 | return 0; |
807 | } | 820 | } |
821 | LCRYPTO_ALIAS(CMS_decrypt_set1_password); | ||
808 | 822 | ||
809 | int | 823 | int |
810 | CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert, BIO *dcont, | 824 | CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert, BIO *dcont, |
@@ -839,6 +853,7 @@ CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert, BIO *dcont, | |||
839 | 853 | ||
840 | return r; | 854 | return r; |
841 | } | 855 | } |
856 | LCRYPTO_ALIAS(CMS_decrypt); | ||
842 | 857 | ||
843 | int | 858 | int |
844 | CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags) | 859 | CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags) |
@@ -867,6 +882,7 @@ CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags) | |||
867 | 882 | ||
868 | return ret; | 883 | return ret; |
869 | } | 884 | } |
885 | LCRYPTO_ALIAS(CMS_final); | ||
870 | 886 | ||
871 | int | 887 | int |
872 | CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) | 888 | CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) |
@@ -874,6 +890,7 @@ CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) | |||
874 | CMSerror(CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM); | 890 | CMSerror(CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM); |
875 | return 0; | 891 | return 0; |
876 | } | 892 | } |
893 | LCRYPTO_ALIAS(CMS_uncompress); | ||
877 | 894 | ||
878 | CMS_ContentInfo * | 895 | CMS_ContentInfo * |
879 | CMS_compress(BIO *in, int comp_nid, unsigned int flags) | 896 | CMS_compress(BIO *in, int comp_nid, unsigned int flags) |
@@ -881,3 +898,4 @@ CMS_compress(BIO *in, int comp_nid, unsigned int flags) | |||
881 | CMSerror(CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM); | 898 | CMSerror(CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM); |
882 | return NULL; | 899 | return NULL; |
883 | } | 900 | } |
901 | LCRYPTO_ALIAS(CMS_compress); | ||