summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x_all.c
diff options
context:
space:
mode:
authorbeck <>2022-11-12 12:11:14 +0000
committerbeck <>2022-11-12 12:11:14 +0000
commit8125bebe702dcf9cd017a89ff37e993121fb18f0 (patch)
treefc201648a07e156fe9478f00bb73c7dd8c3c87e3 /src/lib/libcrypto/x509/x_all.c
parentfc6cccc0c020e8fb32b30a3ff825f0c64a0af374 (diff)
downloadopenbsd-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/x509/x_all.c')
-rw-r--r--src/lib/libcrypto/x509/x_all.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/lib/libcrypto/x509/x_all.c b/src/lib/libcrypto/x509/x_all.c
index 0af130f339..ec5ed3dc6f 100644
--- a/src/lib/libcrypto/x509/x_all.c
+++ b/src/lib/libcrypto/x509/x_all.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x_all.c,v 1.26 2022/06/26 04:14:43 tb Exp $ */ 1/* $OpenBSD: x_all.c,v 1.27 2022/11/12 12:11:14 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -123,30 +123,6 @@ i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl)
123 return ASN1_item_i2d_fp(&X509_CRL_it, fp, crl); 123 return ASN1_item_i2d_fp(&X509_CRL_it, fp, crl);
124} 124}
125 125
126PKCS7 *
127d2i_PKCS7_bio(BIO *bp, PKCS7 **p7)
128{
129 return ASN1_item_d2i_bio(&PKCS7_it, bp, p7);
130}
131
132int
133i2d_PKCS7_bio(BIO *bp, PKCS7 *p7)
134{
135 return ASN1_item_i2d_bio(&PKCS7_it, bp, p7);
136}
137
138PKCS7 *
139d2i_PKCS7_fp(FILE *fp, PKCS7 **p7)
140{
141 return ASN1_item_d2i_fp(&PKCS7_it, fp, p7);
142}
143
144int
145i2d_PKCS7_fp(FILE *fp, PKCS7 *p7)
146{
147 return ASN1_item_i2d_fp(&PKCS7_it, fp, p7);
148}
149
150X509_REQ * 126X509_REQ *
151d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) 127d2i_X509_REQ_bio(BIO *bp, X509_REQ **req)
152{ 128{
@@ -500,14 +476,6 @@ X509_NAME_digest(const X509_NAME *data, const EVP_MD *type, unsigned char *md,
500} 476}
501 477
502int 478int
503PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,
504 const EVP_MD *type, unsigned char *md, unsigned int *len)
505{
506 return(ASN1_item_digest(&PKCS7_ISSUER_AND_SERIAL_it, type,
507 (char *)data, md, len));
508}
509
510int
511X509_up_ref(X509 *x) 479X509_up_ref(X509 *x)
512{ 480{
513 int i = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509); 481 int i = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);