CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2024/01/04 10:01:27
Modified files:
lib/libcrypto/cmac: cm_ameth.c
lib/libcrypto/dh: dh_ameth.c
lib/libcrypto/dsa: dsa_ameth.c
lib/libcrypto/ec: ec_ameth.c ecx_methods.c
lib/libcrypto/evp: evp_local.h p_lib.c
lib/libcrypto/gost: gost89imit_ameth.c gostr341001_ameth.c
lib/libcrypto/hmac: hm_ameth.c
lib/libcrypto/rsa: rsa_ameth.c
Log message:
Replace .pkey_base_id with a .base_method pointer
Every EVP_PKEY_ASN1_METHOD is either an ASN.1 method or an alias.
As such it resolves to an underlying ASN.1 method (in one step).
This information can be stored in a base_method pointer in allusion
to the pkey_base_id, which is the name for the nid (aka pkey_id aka
type) of the underlying method.
For an ASN.1 method, the base method is itself, so the base method
is set as a pointer to itself. For an alias it is of course a pointer
to the underlying method. Then obviously ameth->pkey_base_id is the
same as ameth->base_method->pkey_id, so rework all ASN.1 methods to
follow that.
ok jsing