summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_x509.c
diff options
context:
space:
mode:
authorbeck <>2024-04-09 13:55:02 +0000
committerbeck <>2024-04-09 13:55:02 +0000
commit64a4a93afb604f4128a9e9ef205ceba1a2a1d3f5 (patch)
tree1736883c9fc4f8aef245eb802f635ff161db7acb /src/lib/libcrypto/asn1/t_x509.c
parentb8c1a99fdb41738feb7a1352029c5f5aa42fed86 (diff)
downloadopenbsd-64a4a93afb604f4128a9e9ef205ceba1a2a1d3f5.tar.gz
openbsd-64a4a93afb604f4128a9e9ef205ceba1a2a1d3f5.tar.bz2
openbsd-64a4a93afb604f4128a9e9ef205ceba1a2a1d3f5.zip
Hide public symbols in x509.h
This picks up most of the remaining public symbols in x509.h ok tb@
Diffstat (limited to 'src/lib/libcrypto/asn1/t_x509.c')
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c
index 6f7bdc79fe..5e753f3278 100644
--- a/src/lib/libcrypto/asn1/t_x509.c
+++ b/src/lib/libcrypto/asn1/t_x509.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t_x509.c,v 1.44 2023/12/29 10:59:00 tb Exp $ */ 1/* $OpenBSD: t_x509.c,v 1.45 2024/04/09 13:55:02 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 *
@@ -85,6 +85,7 @@ X509_print_fp(FILE *fp, X509 *x)
85{ 85{
86 return X509_print_ex_fp(fp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); 86 return X509_print_ex_fp(fp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
87} 87}
88LCRYPTO_ALIAS(X509_print_fp);
88 89
89int 90int
90X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag) 91X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag)
@@ -101,12 +102,14 @@ X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag)
101 BIO_free(b); 102 BIO_free(b);
102 return (ret); 103 return (ret);
103} 104}
105LCRYPTO_ALIAS(X509_print_ex_fp);
104 106
105int 107int
106X509_print(BIO *bp, X509 *x) 108X509_print(BIO *bp, X509 *x)
107{ 109{
108 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); 110 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
109} 111}
112LCRYPTO_ALIAS(X509_print);
110 113
111int 114int
112X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag) 115X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
@@ -250,6 +253,7 @@ X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
250 free(m); 253 free(m);
251 return (ret); 254 return (ret);
252} 255}
256LCRYPTO_ALIAS(X509_print_ex);
253 257
254int 258int
255X509_ocspid_print(BIO *bp, X509 *x) 259X509_ocspid_print(BIO *bp, X509 *x)
@@ -301,6 +305,7 @@ X509_ocspid_print(BIO *bp, X509 *x)
301 free(der); 305 free(der);
302 return (0); 306 return (0);
303} 307}
308LCRYPTO_ALIAS(X509_ocspid_print);
304 309
305int 310int
306X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent) 311X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent)
@@ -326,6 +331,7 @@ X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent)
326 331
327 return 1; 332 return 1;
328} 333}
334LCRYPTO_ALIAS(X509_signature_dump);
329 335
330int 336int
331X509_signature_print(BIO *bp, const X509_ALGOR *sigalg, const ASN1_STRING *sig) 337X509_signature_print(BIO *bp, const X509_ALGOR *sigalg, const ASN1_STRING *sig)
@@ -352,6 +358,7 @@ X509_signature_print(BIO *bp, const X509_ALGOR *sigalg, const ASN1_STRING *sig)
352 return 0; 358 return 0;
353 return 1; 359 return 1;
354} 360}
361LCRYPTO_ALIAS(X509_signature_print);
355 362
356int 363int
357ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm) 364ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm)
@@ -513,3 +520,4 @@ X509_NAME_print(BIO *bp, const X509_NAME *name, int obase)
513 free(b); 520 free(b);
514 return (ret); 521 return (ret);
515} 522}
523LCRYPTO_ALIAS(X509_NAME_print);