summaryrefslogtreecommitdiffstats
path: root/crypto/include/internal
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-10 22:22:16 +0200
committerRichard Levitte <levitte@openssl.org>2019-07-23 06:34:09 +0200
commit6b9e37246d5fd8e701b825c71fa1a018916af33c (patch)
treefc451bc5eeab4d6b1eb569c31fd912e7f20d083a /crypto/include/internal
parentda2addc515d547b0d724a4fc730c4345ed713221 (diff)
Add a mechnism to save the name of fetched methods
This will be useful for information display, as well as for code that want to check the name of an algorithm. This can eventually replace all NID checks. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9356)
Diffstat (limited to 'crypto/include/internal')
-rw-r--r--crypto/include/internal/evp_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/include/internal/evp_int.h b/crypto/include/internal/evp_int.h
index 50ed933926..9d878987bc 100644
--- a/crypto/include/internal/evp_int.h
+++ b/crypto/include/internal/evp_int.h
@@ -201,6 +201,7 @@ struct evp_md_st {
/* New structure members */
/* TODO(3.0): Remove above comment when legacy has gone */
+ char *name;
OSSL_PROVIDER *prov;
CRYPTO_REF_COUNT refcnt;
CRYPTO_RWLOCK *lock;
@@ -251,6 +252,7 @@ struct evp_cipher_st {
/* New structure members */
/* TODO(3.0): Remove above comment when legacy has gone */
+ char *name;
OSSL_PROVIDER *prov;
CRYPTO_REF_COUNT refcnt;
CRYPTO_RWLOCK *lock;