diff options
author | tb <> | 2024-03-02 10:04:40 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 10:04:40 +0000 |
commit | dd0f795db17e3461ba7c60f8116c3ead2cc485b9 (patch) | |
tree | 2abf257b03be6f8145317d295d64d224dc93fbee /src/lib/libcrypto/evp/pmeth_lib.c | |
parent | 10d41204e8ddb50a380449ffe06fcbff6b901565 (diff) | |
download | openbsd-dd0f795db17e3461ba7c60f8116c3ead2cc485b9.tar.gz openbsd-dd0f795db17e3461ba7c60f8116c3ead2cc485b9.tar.bz2 openbsd-dd0f795db17e3461ba7c60f8116c3ead2cc485b9.zip |
Remove EVP_PKEY_meth_*() API
After ameth, the second bit of custom EVP_PKEY API removal.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/pmeth_lib.c')
-rw-r--r-- | src/lib/libcrypto/evp/pmeth_lib.c | 162 |
1 files changed, 1 insertions, 161 deletions
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c index 67ab72eff3..a0d57594d8 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.37 2024/01/13 12:46:59 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_lib.c,v 1.38 2024/03/02 10:04:40 tb 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 | */ |
@@ -347,163 +347,3 @@ EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) | |||
347 | { | 347 | { |
348 | return ctx->app_data; | 348 | return ctx->app_data; |
349 | } | 349 | } |
350 | |||
351 | /* | ||
352 | * Remove all the functions below in the next major bump | ||
353 | */ | ||
354 | |||
355 | const EVP_PKEY_METHOD * | ||
356 | EVP_PKEY_meth_find(int type) | ||
357 | { | ||
358 | EVPerror(ERR_R_DISABLED); | ||
359 | return NULL; | ||
360 | } | ||
361 | |||
362 | EVP_PKEY_METHOD* | ||
363 | EVP_PKEY_meth_new(int id, int flags) | ||
364 | { | ||
365 | EVPerror(ERR_R_DISABLED); | ||
366 | return NULL; | ||
367 | } | ||
368 | |||
369 | void | ||
370 | EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, const EVP_PKEY_METHOD *meth) | ||
371 | { | ||
372 | } | ||
373 | |||
374 | void | ||
375 | EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src) | ||
376 | { | ||
377 | } | ||
378 | |||
379 | void | ||
380 | EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth) | ||
381 | { | ||
382 | } | ||
383 | |||
384 | int | ||
385 | EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth) | ||
386 | { | ||
387 | EVPerror(ERR_R_DISABLED); | ||
388 | return 0; | ||
389 | } | ||
390 | |||
391 | void | ||
392 | EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth, | ||
393 | int (*init)(EVP_PKEY_CTX *ctx)) | ||
394 | { | ||
395 | } | ||
396 | |||
397 | void | ||
398 | EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth, | ||
399 | int (*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src)) | ||
400 | { | ||
401 | } | ||
402 | |||
403 | void | ||
404 | EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth, | ||
405 | void (*cleanup)(EVP_PKEY_CTX *ctx)) | ||
406 | { | ||
407 | } | ||
408 | |||
409 | void | ||
410 | EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth, | ||
411 | int (*paramgen_init)(EVP_PKEY_CTX *ctx), | ||
412 | int (*paramgen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) | ||
413 | { | ||
414 | } | ||
415 | |||
416 | void | ||
417 | EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth, | ||
418 | int (*keygen_init)(EVP_PKEY_CTX *ctx), | ||
419 | int (*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) | ||
420 | { | ||
421 | } | ||
422 | |||
423 | void | ||
424 | EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth, | ||
425 | int (*sign_init)(EVP_PKEY_CTX *ctx), | ||
426 | int (*sign)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | ||
427 | const unsigned char *tbs, size_t tbslen)) | ||
428 | { | ||
429 | } | ||
430 | |||
431 | void | ||
432 | EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth, | ||
433 | int (*verify_init)(EVP_PKEY_CTX *ctx), | ||
434 | int (*verify)(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, | ||
435 | const unsigned char *tbs, size_t tbslen)) | ||
436 | { | ||
437 | } | ||
438 | |||
439 | void | ||
440 | EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth, | ||
441 | int (*verify_recover_init)(EVP_PKEY_CTX *ctx), | ||
442 | int (*verify_recover)(EVP_PKEY_CTX *ctx, | ||
443 | unsigned char *sig, size_t *siglen, | ||
444 | const unsigned char *tbs, size_t tbslen)) | ||
445 | { | ||
446 | } | ||
447 | |||
448 | void | ||
449 | EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth, | ||
450 | int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), | ||
451 | int (*signctx)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | ||
452 | EVP_MD_CTX *mctx)) | ||
453 | { | ||
454 | } | ||
455 | |||
456 | void | ||
457 | EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth, | ||
458 | int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), | ||
459 | int (*verifyctx)(EVP_PKEY_CTX *ctx, const unsigned char *sig, int siglen, | ||
460 | EVP_MD_CTX *mctx)) | ||
461 | { | ||
462 | } | ||
463 | |||
464 | void | ||
465 | EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth, | ||
466 | int (*encrypt_init)(EVP_PKEY_CTX *ctx), | ||
467 | int (*encryptfn)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | ||
468 | const unsigned char *in, size_t inlen)) | ||
469 | { | ||
470 | } | ||
471 | |||
472 | void | ||
473 | EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth, | ||
474 | int (*decrypt_init)(EVP_PKEY_CTX *ctx), | ||
475 | int (*decrypt)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | ||
476 | const unsigned char *in, size_t inlen)) | ||
477 | { | ||
478 | } | ||
479 | |||
480 | void | ||
481 | EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth, | ||
482 | int (*derive_init)(EVP_PKEY_CTX *ctx), | ||
483 | int (*derive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)) | ||
484 | { | ||
485 | } | ||
486 | |||
487 | void | ||
488 | EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth, | ||
489 | int (*ctrl)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2), | ||
490 | int (*ctrl_str)(EVP_PKEY_CTX *ctx, const char *type, const char *value)) | ||
491 | { | ||
492 | } | ||
493 | |||
494 | void | ||
495 | EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth, int (*check)(EVP_PKEY *pkey)) | ||
496 | { | ||
497 | } | ||
498 | |||
499 | void | ||
500 | EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth, | ||
501 | int (*public_check)(EVP_PKEY *pkey)) | ||
502 | { | ||
503 | } | ||
504 | |||
505 | void | ||
506 | EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth, | ||
507 | int (*param_check)(EVP_PKEY *pkey)) | ||
508 | { | ||
509 | } | ||