diff options
Diffstat (limited to 'src/lib/libcrypto/pkcs12/p12_mutl.c')
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_mutl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pkcs12/p12_mutl.c b/src/lib/libcrypto/pkcs12/p12_mutl.c index b1aafe9b8e..68fb1b9e5d 100644 --- a/src/lib/libcrypto/pkcs12/p12_mutl.c +++ b/src/lib/libcrypto/pkcs12/p12_mutl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_mutl.c,v 1.32 2022/08/20 09:16:18 tb Exp $ */ | 1 | /* $OpenBSD: p12_mutl.c,v 1.33 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 | */ |
@@ -78,6 +78,7 @@ PKCS12_mac_present(const PKCS12 *p12) | |||
78 | { | 78 | { |
79 | return p12->mac != NULL; | 79 | return p12->mac != NULL; |
80 | } | 80 | } |
81 | LCRYPTO_ALIAS(PKCS12_mac_present) | ||
81 | 82 | ||
82 | void | 83 | void |
83 | PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac, const X509_ALGOR **pmacalg, | 84 | PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac, const X509_ALGOR **pmacalg, |
@@ -105,6 +106,7 @@ PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac, const X509_ALGOR **pmacalg, | |||
105 | if (piter != NULL) | 106 | if (piter != NULL) |
106 | *piter = p12->mac->iter; | 107 | *piter = p12->mac->iter; |
107 | } | 108 | } |
109 | LCRYPTO_ALIAS(PKCS12_get0_mac) | ||
108 | 110 | ||
109 | /* Generate a MAC */ | 111 | /* Generate a MAC */ |
110 | int | 112 | int |
@@ -167,6 +169,7 @@ PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, | |||
167 | 169 | ||
168 | return ret; | 170 | return ret; |
169 | } | 171 | } |
172 | LCRYPTO_ALIAS(PKCS12_gen_mac) | ||
170 | 173 | ||
171 | /* Verify the mac */ | 174 | /* Verify the mac */ |
172 | int | 175 | int |
@@ -188,6 +191,7 @@ PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) | |||
188 | return 0; | 191 | return 0; |
189 | return 1; | 192 | return 1; |
190 | } | 193 | } |
194 | LCRYPTO_ALIAS(PKCS12_verify_mac) | ||
191 | 195 | ||
192 | /* Set a mac */ | 196 | /* Set a mac */ |
193 | 197 | ||
@@ -215,6 +219,7 @@ PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, unsigned char *salt, | |||
215 | } | 219 | } |
216 | return 1; | 220 | return 1; |
217 | } | 221 | } |
222 | LCRYPTO_ALIAS(PKCS12_set_mac) | ||
218 | 223 | ||
219 | /* Set up a mac structure */ | 224 | /* Set up a mac structure */ |
220 | int | 225 | int |
@@ -254,4 +259,5 @@ PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen, | |||
254 | 259 | ||
255 | return 1; | 260 | return 1; |
256 | } | 261 | } |
262 | LCRYPTO_ALIAS(PKCS12_setup_mac) | ||
257 | #endif | 263 | #endif |