diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-01-13 11:48:17 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-01-13 11:48:17 +0000 |
commit | e3f6bea371b15b4735ec49cd9e8b42b426576507 (patch) | |
tree | 5b5f4898cdfced0e9ca0d92c268209fded43c7f6 /lib/libcrypto | |
parent | d89dfd1db3bb76d610da273e8369d9df0c47a8fc (diff) |
Neuter EVP_add_{cipher,digest}()
This makes them noops. They are used in the wild for adding ciphers
that are always added by the library init code. This is a historic
leftover.
This removes the last (and only ever) calls to check_defer().
ok jsing
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/evp/names.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libcrypto/evp/names.c b/lib/libcrypto/evp/names.c index f43534194a4..6ef061a2cb6 100644 --- a/lib/libcrypto/evp/names.c +++ b/lib/libcrypto/evp/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.26 2024/01/13 11:45:03 tb Exp $ */ +/* $OpenBSD: names.c,v 1.27 2024/01/13 11:48:16 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -70,22 +70,12 @@ void check_defer(int nid); int EVP_add_cipher(const EVP_CIPHER *c) { - if (c == NULL) - return 0; - - check_defer(c->nid); - return 1; } int EVP_add_digest(const EVP_MD *md) { - check_defer(md->type); - - if (md->pkey_type && md->type != md->pkey_type) - check_defer(md->pkey_type); - return 1; } |