Add convenience functions EVP_str2ctrl() and EVP_hex2ctrl()
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Oct 2018 18:20:00 +0000 (20:20 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 29 Oct 2018 12:35:19 +0000 (13:35 +0100)
commitf842b6b2a4d7cbb9d22e4605c502b73f25bb6a7b
tree4b2f85bbde14b8df330370bf43d5178529c36c5a
parent2bdb4af50364121a5f0e47024e9f71e1a6025fcf
Add convenience functions EVP_str2ctrl() and EVP_hex2ctrl()

These functions are generalizations of EVP_PKEY_CTX_str2ctrl() and
EVP_PKEY_CTX_hex2ctrl().  They will parse the value, and then pass the
parsed result and length to a callback that knows exactly how to pass
them on to a main _ctrl function, along with a context structure
pointer.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7393)
crypto/evp/evp_lib.c
include/openssl/evp.h
util/libcrypto.num