summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pkcs12/p12_utl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pkcs12/p12_utl.c')
-rw-r--r--src/lib/libcrypto/pkcs12/p12_utl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs12/p12_utl.c b/src/lib/libcrypto/pkcs12/p12_utl.c
index 4fe557f626..0758e875ae 100644
--- a/src/lib/libcrypto/pkcs12/p12_utl.c
+++ b/src/lib/libcrypto/pkcs12/p12_utl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: p12_utl.c,v 1.19 2022/09/11 17:30:13 tb Exp $ */ 1/* $OpenBSD: p12_utl.c,v 1.20 2022/11/12 13:03:28 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 1999. 3 * project 1999.
4 */ 4 */
@@ -100,6 +100,7 @@ OPENSSL_asc2uni(const char *asc, int asclen, unsigned char **uni, int *unilen)
100 *uni = unitmp; 100 *uni = unitmp;
101 return unitmp; 101 return unitmp;
102} 102}
103LCRYPTO_ALIAS(OPENSSL_asc2uni)
103 104
104char * 105char *
105OPENSSL_uni2asc(const unsigned char *uni, int unilen) 106OPENSSL_uni2asc(const unsigned char *uni, int unilen)
@@ -125,27 +126,32 @@ OPENSSL_uni2asc(const unsigned char *uni, int unilen)
125 asctmp[asclen - 1] = '\0'; 126 asctmp[asclen - 1] = '\0';
126 return asctmp; 127 return asctmp;
127} 128}
129LCRYPTO_ALIAS(OPENSSL_uni2asc)
128 130
129int 131int
130i2d_PKCS12_bio(BIO *bp, PKCS12 *p12) 132i2d_PKCS12_bio(BIO *bp, PKCS12 *p12)
131{ 133{
132 return ASN1_item_i2d_bio(&PKCS12_it, bp, p12); 134 return ASN1_item_i2d_bio(&PKCS12_it, bp, p12);
133} 135}
136LCRYPTO_ALIAS(i2d_PKCS12_bio)
134 137
135int 138int
136i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) 139i2d_PKCS12_fp(FILE *fp, PKCS12 *p12)
137{ 140{
138 return ASN1_item_i2d_fp(&PKCS12_it, fp, p12); 141 return ASN1_item_i2d_fp(&PKCS12_it, fp, p12);
139} 142}
143LCRYPTO_ALIAS(i2d_PKCS12_fp)
140 144
141PKCS12 * 145PKCS12 *
142d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) 146d2i_PKCS12_bio(BIO *bp, PKCS12 **p12)
143{ 147{
144 return ASN1_item_d2i_bio(&PKCS12_it, bp, p12); 148 return ASN1_item_d2i_bio(&PKCS12_it, bp, p12);
145} 149}
150LCRYPTO_ALIAS(d2i_PKCS12_bio)
146 151
147PKCS12 * 152PKCS12 *
148d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) 153d2i_PKCS12_fp(FILE *fp, PKCS12 **p12)
149{ 154{
150 return ASN1_item_d2i_fp(&PKCS12_it, fp, p12); 155 return ASN1_item_d2i_fp(&PKCS12_it, fp, p12);
151} 156}
157LCRYPTO_ALIAS(d2i_PKCS12_fp)