diff options
Diffstat (limited to 'src/lib/libcrypto/evp/pmeth_lib.c')
-rw-r--r-- | src/lib/libcrypto/evp/pmeth_lib.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c index a2a9ad9c7b..a0a193da7a 100644 --- a/src/lib/libcrypto/evp/pmeth_lib.c +++ b/src/lib/libcrypto/evp/pmeth_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pmeth_lib.c,v 1.39 2024/03/02 11:17:27 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_lib.c,v 1.40 2024/04/09 13:52:41 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -155,12 +155,14 @@ EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *engine) | |||
155 | { | 155 | { |
156 | return evp_pkey_ctx_new(pkey, -1); | 156 | return evp_pkey_ctx_new(pkey, -1); |
157 | } | 157 | } |
158 | LCRYPTO_ALIAS(EVP_PKEY_CTX_new); | ||
158 | 159 | ||
159 | EVP_PKEY_CTX * | 160 | EVP_PKEY_CTX * |
160 | EVP_PKEY_CTX_new_id(int nid, ENGINE *engine) | 161 | EVP_PKEY_CTX_new_id(int nid, ENGINE *engine) |
161 | { | 162 | { |
162 | return evp_pkey_ctx_new(NULL, nid); | 163 | return evp_pkey_ctx_new(NULL, nid); |
163 | } | 164 | } |
165 | LCRYPTO_ALIAS(EVP_PKEY_CTX_new_id); | ||
164 | 166 | ||
165 | EVP_PKEY_CTX * | 167 | EVP_PKEY_CTX * |
166 | EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) | 168 | EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) |
@@ -192,6 +194,7 @@ EVP_PKEY_CTX_dup(EVP_PKEY_CTX *pctx) | |||
192 | EVP_PKEY_CTX_free(rctx); | 194 | EVP_PKEY_CTX_free(rctx); |
193 | return NULL; | 195 | return NULL; |
194 | } | 196 | } |
197 | LCRYPTO_ALIAS(EVP_PKEY_CTX_dup); | ||
195 | 198 | ||
196 | void | 199 | void |
197 | EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) | 200 | EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) |
@@ -204,6 +207,7 @@ EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx) | |||
204 | EVP_PKEY_free(ctx->peerkey); | 207 | EVP_PKEY_free(ctx->peerkey); |
205 | free(ctx); | 208 | free(ctx); |
206 | } | 209 | } |
210 | LCRYPTO_ALIAS(EVP_PKEY_CTX_free); | ||
207 | 211 | ||
208 | int | 212 | int |
209 | EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, | 213 | EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, |
@@ -236,6 +240,7 @@ EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype, int cmd, | |||
236 | return ret; | 240 | return ret; |
237 | 241 | ||
238 | } | 242 | } |
243 | LCRYPTO_ALIAS(EVP_PKEY_CTX_ctrl); | ||
239 | 244 | ||
240 | int | 245 | int |
241 | EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *name, const char *value) | 246 | EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *name, const char *value) |
@@ -250,6 +255,7 @@ EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *name, const char *value) | |||
250 | } | 255 | } |
251 | return ctx->pmeth->ctrl_str(ctx, name, value); | 256 | return ctx->pmeth->ctrl_str(ctx, name, value); |
252 | } | 257 | } |
258 | LCRYPTO_ALIAS(EVP_PKEY_CTX_ctrl_str); | ||
253 | 259 | ||
254 | int | 260 | int |
255 | EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str) | 261 | EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str) |
@@ -300,6 +306,7 @@ EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx) | |||
300 | { | 306 | { |
301 | return ctx->operation; | 307 | return ctx->operation; |
302 | } | 308 | } |
309 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_operation); | ||
303 | 310 | ||
304 | void | 311 | void |
305 | EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) | 312 | EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) |
@@ -307,39 +314,46 @@ EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen) | |||
307 | ctx->keygen_info = dat; | 314 | ctx->keygen_info = dat; |
308 | ctx->keygen_info_count = datlen; | 315 | ctx->keygen_info_count = datlen; |
309 | } | 316 | } |
317 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set0_keygen_info); | ||
310 | 318 | ||
311 | void | 319 | void |
312 | EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data) | 320 | EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data) |
313 | { | 321 | { |
314 | ctx->data = data; | 322 | ctx->data = data; |
315 | } | 323 | } |
324 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set_data); | ||
316 | 325 | ||
317 | void * | 326 | void * |
318 | EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx) | 327 | EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx) |
319 | { | 328 | { |
320 | return ctx->data; | 329 | return ctx->data; |
321 | } | 330 | } |
331 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_data); | ||
322 | 332 | ||
323 | EVP_PKEY * | 333 | EVP_PKEY * |
324 | EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx) | 334 | EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx) |
325 | { | 335 | { |
326 | return ctx->pkey; | 336 | return ctx->pkey; |
327 | } | 337 | } |
338 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get0_pkey); | ||
328 | 339 | ||
329 | EVP_PKEY * | 340 | EVP_PKEY * |
330 | EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx) | 341 | EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx) |
331 | { | 342 | { |
332 | return ctx->peerkey; | 343 | return ctx->peerkey; |
333 | } | 344 | } |
345 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get0_peerkey); | ||
334 | 346 | ||
335 | void | 347 | void |
336 | EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data) | 348 | EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data) |
337 | { | 349 | { |
338 | ctx->app_data = data; | 350 | ctx->app_data = data; |
339 | } | 351 | } |
352 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set_app_data); | ||
340 | 353 | ||
341 | void * | 354 | void * |
342 | EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) | 355 | EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) |
343 | { | 356 | { |
344 | return ctx->app_data; | 357 | return ctx->app_data; |
345 | } | 358 | } |
359 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_app_data); | ||