diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/p5_pbe.c')
-rw-r--r-- | src/lib/libcrypto/asn1/p5_pbe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/p5_pbe.c b/src/lib/libcrypto/asn1/p5_pbe.c index a150b20bcd..a7fc9aa19f 100644 --- a/src/lib/libcrypto/asn1/p5_pbe.c +++ b/src/lib/libcrypto/asn1/p5_pbe.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p5_pbe.c,v 1.23 2021/12/25 13:17:48 jsing Exp $ */ | 1 | /* $OpenBSD: p5_pbe.c,v 1.24 2023/07/05 21:23:36 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 | */ |
@@ -95,24 +95,28 @@ d2i_PBEPARAM(PBEPARAM **a, const unsigned char **in, long len) | |||
95 | return (PBEPARAM *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | 95 | return (PBEPARAM *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, |
96 | &PBEPARAM_it); | 96 | &PBEPARAM_it); |
97 | } | 97 | } |
98 | LCRYPTO_ALIAS(d2i_PBEPARAM); | ||
98 | 99 | ||
99 | int | 100 | int |
100 | i2d_PBEPARAM(PBEPARAM *a, unsigned char **out) | 101 | i2d_PBEPARAM(PBEPARAM *a, unsigned char **out) |
101 | { | 102 | { |
102 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &PBEPARAM_it); | 103 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &PBEPARAM_it); |
103 | } | 104 | } |
105 | LCRYPTO_ALIAS(i2d_PBEPARAM); | ||
104 | 106 | ||
105 | PBEPARAM * | 107 | PBEPARAM * |
106 | PBEPARAM_new(void) | 108 | PBEPARAM_new(void) |
107 | { | 109 | { |
108 | return (PBEPARAM *)ASN1_item_new(&PBEPARAM_it); | 110 | return (PBEPARAM *)ASN1_item_new(&PBEPARAM_it); |
109 | } | 111 | } |
112 | LCRYPTO_ALIAS(PBEPARAM_new); | ||
110 | 113 | ||
111 | void | 114 | void |
112 | PBEPARAM_free(PBEPARAM *a) | 115 | PBEPARAM_free(PBEPARAM *a) |
113 | { | 116 | { |
114 | ASN1_item_free((ASN1_VALUE *)a, &PBEPARAM_it); | 117 | ASN1_item_free((ASN1_VALUE *)a, &PBEPARAM_it); |
115 | } | 118 | } |
119 | LCRYPTO_ALIAS(PBEPARAM_free); | ||
116 | 120 | ||
117 | 121 | ||
118 | /* Set an algorithm identifier for a PKCS#5 PBE algorithm */ | 122 | /* Set an algorithm identifier for a PKCS#5 PBE algorithm */ |
@@ -165,6 +169,7 @@ PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter, | |||
165 | ASN1_STRING_free(pbe_str); | 169 | ASN1_STRING_free(pbe_str); |
166 | return 0; | 170 | return 0; |
167 | } | 171 | } |
172 | LCRYPTO_ALIAS(PKCS5_pbe_set0_algor); | ||
168 | 173 | ||
169 | /* Return an algorithm identifier for a PKCS#5 PBE algorithm */ | 174 | /* Return an algorithm identifier for a PKCS#5 PBE algorithm */ |
170 | 175 | ||
@@ -184,3 +189,4 @@ PKCS5_pbe_set(int alg, int iter, const unsigned char *salt, int saltlen) | |||
184 | X509_ALGOR_free(ret); | 189 | X509_ALGOR_free(ret); |
185 | return NULL; | 190 | return NULL; |
186 | } | 191 | } |
192 | LCRYPTO_ALIAS(PKCS5_pbe_set); | ||