diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp_encode.c')
-rw-r--r-- | src/lib/libcrypto/evp/evp_encode.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_encode.c b/src/lib/libcrypto/evp/evp_encode.c index 199bdfa27e..ae6ec476e3 100644 --- a/src/lib/libcrypto/evp/evp_encode.c +++ b/src/lib/libcrypto/evp/evp_encode.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_encode.c,v 1.2 2023/12/29 10:31:50 tb Exp $ */ | 1 | /* $OpenBSD: evp_encode.c,v 1.3 2024/04/09 13:52:41 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 | * |
@@ -128,12 +128,14 @@ EVP_ENCODE_CTX_new(void) | |||
128 | { | 128 | { |
129 | return calloc(1, sizeof(EVP_ENCODE_CTX)); | 129 | return calloc(1, sizeof(EVP_ENCODE_CTX)); |
130 | } | 130 | } |
131 | LCRYPTO_ALIAS(EVP_ENCODE_CTX_new); | ||
131 | 132 | ||
132 | void | 133 | void |
133 | EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) | 134 | EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) |
134 | { | 135 | { |
135 | free(ctx); | 136 | free(ctx); |
136 | } | 137 | } |
138 | LCRYPTO_ALIAS(EVP_ENCODE_CTX_free); | ||
137 | 139 | ||
138 | void | 140 | void |
139 | EVP_EncodeInit(EVP_ENCODE_CTX *ctx) | 141 | EVP_EncodeInit(EVP_ENCODE_CTX *ctx) |
@@ -142,6 +144,7 @@ EVP_EncodeInit(EVP_ENCODE_CTX *ctx) | |||
142 | ctx->num = 0; | 144 | ctx->num = 0; |
143 | ctx->line_num = 0; | 145 | ctx->line_num = 0; |
144 | } | 146 | } |
147 | LCRYPTO_ALIAS(EVP_EncodeInit); | ||
145 | 148 | ||
146 | int | 149 | int |
147 | EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | 150 | EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, |
@@ -192,6 +195,7 @@ EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | |||
192 | 195 | ||
193 | return 1; | 196 | return 1; |
194 | } | 197 | } |
198 | LCRYPTO_ALIAS(EVP_EncodeUpdate); | ||
195 | 199 | ||
196 | void | 200 | void |
197 | EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | 201 | EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) |
@@ -206,6 +210,7 @@ EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | |||
206 | } | 210 | } |
207 | *outl = ret; | 211 | *outl = ret; |
208 | } | 212 | } |
213 | LCRYPTO_ALIAS(EVP_EncodeFinal); | ||
209 | 214 | ||
210 | int | 215 | int |
211 | EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) | 216 | EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) |
@@ -238,6 +243,7 @@ EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) | |||
238 | *t = '\0'; | 243 | *t = '\0'; |
239 | return (ret); | 244 | return (ret); |
240 | } | 245 | } |
246 | LCRYPTO_ALIAS(EVP_EncodeBlock); | ||
241 | 247 | ||
242 | void | 248 | void |
243 | EVP_DecodeInit(EVP_ENCODE_CTX *ctx) | 249 | EVP_DecodeInit(EVP_ENCODE_CTX *ctx) |
@@ -247,6 +253,7 @@ EVP_DecodeInit(EVP_ENCODE_CTX *ctx) | |||
247 | ctx->line_num = 0; | 253 | ctx->line_num = 0; |
248 | ctx->expect_nl = 0; | 254 | ctx->expect_nl = 0; |
249 | } | 255 | } |
256 | LCRYPTO_ALIAS(EVP_DecodeInit); | ||
250 | 257 | ||
251 | int | 258 | int |
252 | EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | 259 | EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, |
@@ -355,6 +362,7 @@ EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | |||
355 | ctx->num = n; | 362 | ctx->num = n; |
356 | return (rv); | 363 | return (rv); |
357 | } | 364 | } |
365 | LCRYPTO_ALIAS(EVP_DecodeUpdate); | ||
358 | 366 | ||
359 | int | 367 | int |
360 | EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) | 368 | EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) |
@@ -395,6 +403,7 @@ EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) | |||
395 | } | 403 | } |
396 | return (ret); | 404 | return (ret); |
397 | } | 405 | } |
406 | LCRYPTO_ALIAS(EVP_DecodeBlock); | ||
398 | 407 | ||
399 | int | 408 | int |
400 | EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | 409 | EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) |
@@ -412,3 +421,4 @@ EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) | |||
412 | } else | 421 | } else |
413 | return (1); | 422 | return (1); |
414 | } | 423 | } |
424 | LCRYPTO_ALIAS(EVP_DecodeFinal); | ||