summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_lib.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-11-11 15:04:56 +1000
committerShane Lontis <shane.lontis@oracle.com>2020-11-13 10:32:48 +1000
commita04400fc74bc2ee9ef396c1619d190b48c072a8c (patch)
tree1bccb9d4c8bb1470efcd2033233e68edcef0d098 /crypto/evp/evp_lib.c
parenta7da4d488d55f68de50a96bd3027cd9fc650d444 (diff)
Remove unused helper functions EVP_str2ctrl() & EVP_hex2ctrl().
These were added when the EVP_MAC work was being done. I dont think these lightweight wrappers are required, and it seems better to remove them, rather than adding documentation. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/13372)
Diffstat (limited to 'crypto/evp/evp_lib.c')
-rw-r--r--crypto/evp/evp_lib.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/crypto/evp/evp_lib.c b/crypto/evp/evp_lib.c
index 81151e4f01..8da5b2290b 100644
--- a/crypto/evp/evp_lib.c
+++ b/crypto/evp/evp_lib.c
@@ -991,33 +991,6 @@ int EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags)
return (ctx->flags & flags);
}
-int EVP_str2ctrl(int (*cb)(void *ctx, int cmd, void *buf, size_t buflen),
- void *ctx, int cmd, const char *value)
-{
- size_t len;
-
- len = strlen(value);
- if (len > INT_MAX)
- return -1;
- return cb(ctx, cmd, (void *)value, len);
-}
-
-int EVP_hex2ctrl(int (*cb)(void *ctx, int cmd, void *buf, size_t buflen),
- void *ctx, int cmd, const char *hex)
-{
- unsigned char *bin;
- long binlen;
- int rv = -1;
-
- bin = OPENSSL_hexstr2buf(hex, &binlen);
- if (bin == NULL)
- return 0;
- if (binlen <= INT_MAX)
- rv = cb(ctx, cmd, bin, binlen);
- OPENSSL_free(bin);
- return rv;
-}
-
int EVP_PKEY_CTX_set_group_name(EVP_PKEY_CTX *ctx, const char *name)
{
OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END };