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