summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/evp/encode.c')
-rw-r--r--src/lib/libcrypto/evp/encode.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/encode.c b/src/lib/libcrypto/evp/encode.c
index 718bdb5fc4..10cb51217a 100644
--- a/src/lib/libcrypto/evp/encode.c
+++ b/src/lib/libcrypto/evp/encode.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: encode.c,v 1.30 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: encode.c,v 1.31 2023/07/07 13:54:45 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}
131LCRYPTO_ALIAS(EVP_ENCODE_CTX_new);
131 132
132void 133void
133EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) 134EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx)
134{ 135{
135 free(ctx); 136 free(ctx);
136} 137}
138LCRYPTO_ALIAS(EVP_ENCODE_CTX_free);
137 139
138void 140void
139EVP_EncodeInit(EVP_ENCODE_CTX *ctx) 141EVP_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}
147LCRYPTO_ALIAS(EVP_EncodeInit);
145 148
146int 149int
147EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, 150EVP_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}
198LCRYPTO_ALIAS(EVP_EncodeUpdate);
195 199
196void 200void
197EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) 201EVP_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}
213LCRYPTO_ALIAS(EVP_EncodeFinal);
209 214
210int 215int
211EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int dlen) 216EVP_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}
246LCRYPTO_ALIAS(EVP_EncodeBlock);
241 247
242void 248void
243EVP_DecodeInit(EVP_ENCODE_CTX *ctx) 249EVP_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}
256LCRYPTO_ALIAS(EVP_DecodeInit);
250 257
251int 258int
252EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, 259EVP_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}
365LCRYPTO_ALIAS(EVP_DecodeUpdate);
358 366
359int 367int
360EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) 368EVP_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}
406LCRYPTO_ALIAS(EVP_DecodeBlock);
398 407
399int 408int
400EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) 409EVP_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}
424LCRYPTO_ALIAS(EVP_DecodeFinal);