diff options
author | beck <> | 2022-11-12 12:11:14 +0000 |
---|---|---|
committer | beck <> | 2022-11-12 12:11:14 +0000 |
commit | 8125bebe702dcf9cd017a89ff37e993121fb18f0 (patch) | |
tree | fc201648a07e156fe9478f00bb73c7dd8c3c87e3 /src/lib/libcrypto/pkcs7/pk7_smime.c | |
parent | fc6cccc0c020e8fb32b30a3ff825f0c64a0af374 (diff) | |
download | openbsd-8125bebe702dcf9cd017a89ff37e993121fb18f0.tar.gz openbsd-8125bebe702dcf9cd017a89ff37e993121fb18f0.tar.bz2 openbsd-8125bebe702dcf9cd017a89ff37e993121fb18f0.zip |
Hide symbols in libcrypto/pkcs7
This applies the guentherizer 9000(tm) to pkcs7, after moving
several pkcs7 funcitions back to pkcs7 that were in x509/x_all.c
for reasons known only to the miasma.
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/pkcs7/pk7_smime.c')
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_smime.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs7/pk7_smime.c b/src/lib/libcrypto/pkcs7/pk7_smime.c index f11d23e30d..a667daf75e 100644 --- a/src/lib/libcrypto/pkcs7/pk7_smime.c +++ b/src/lib/libcrypto/pkcs7/pk7_smime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pk7_smime.c,v 1.23 2021/11/01 20:53:08 tb Exp $ */ | 1 | /* $OpenBSD: pk7_smime.c,v 1.24 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -111,6 +111,7 @@ err: | |||
111 | PKCS7_free(p7); | 111 | PKCS7_free(p7); |
112 | return NULL; | 112 | return NULL; |
113 | } | 113 | } |
114 | LCRYPTO_ALIAS(PKCS7_sign) | ||
114 | 115 | ||
115 | int | 116 | int |
116 | PKCS7_final(PKCS7 *p7, BIO *data, int flags) | 117 | PKCS7_final(PKCS7 *p7, BIO *data, int flags) |
@@ -139,6 +140,7 @@ err: | |||
139 | 140 | ||
140 | return ret; | 141 | return ret; |
141 | } | 142 | } |
143 | LCRYPTO_ALIAS(PKCS7_final) | ||
142 | 144 | ||
143 | /* Check to see if a cipher exists and if so add S/MIME capabilities */ | 145 | /* Check to see if a cipher exists and if so add S/MIME capabilities */ |
144 | 146 | ||
@@ -221,6 +223,7 @@ err: | |||
221 | sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free); | 223 | sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free); |
222 | return NULL; | 224 | return NULL; |
223 | } | 225 | } |
226 | LCRYPTO_ALIAS(PKCS7_sign_add_signer) | ||
224 | 227 | ||
225 | /* Search for a digest matching SignerInfo digest type and if found | 228 | /* Search for a digest matching SignerInfo digest type and if found |
226 | * copy across. | 229 | * copy across. |
@@ -423,6 +426,7 @@ err: | |||
423 | 426 | ||
424 | return ret; | 427 | return ret; |
425 | } | 428 | } |
429 | LCRYPTO_ALIAS(PKCS7_verify) | ||
426 | 430 | ||
427 | STACK_OF(X509) * | 431 | STACK_OF(X509) * |
428 | PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, int flags) | 432 | PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, int flags) |
@@ -481,6 +485,7 @@ PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, int flags) | |||
481 | } | 485 | } |
482 | return signers; | 486 | return signers; |
483 | } | 487 | } |
488 | LCRYPTO_ALIAS(PKCS7_get0_signers) | ||
484 | 489 | ||
485 | /* Build a complete PKCS#7 enveloped data */ | 490 | /* Build a complete PKCS#7 enveloped data */ |
486 | 491 | ||
@@ -524,6 +529,7 @@ err: | |||
524 | PKCS7_free(p7); | 529 | PKCS7_free(p7); |
525 | return NULL; | 530 | return NULL; |
526 | } | 531 | } |
532 | LCRYPTO_ALIAS(PKCS7_encrypt) | ||
527 | 533 | ||
528 | int | 534 | int |
529 | PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) | 535 | PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) |
@@ -590,3 +596,4 @@ PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) | |||
590 | return ret; | 596 | return ret; |
591 | } | 597 | } |
592 | } | 598 | } |
599 | LCRYPTO_ALIAS(PKCS7_decrypt) | ||