]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add internal function evp_generic_do_all()
authorRichard Levitte <levitte@openssl.org>
Sat, 13 Jul 2019 04:53:44 +0000 (06:53 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 23 Jul 2019 04:34:09 +0000 (06:34 +0200)
commit3d96a51c09296cb5c283efb5681105a7691e6fbc
treebd424bf2da47447d9c47ee6af0ff08fe9cb7a56d
parent84d167f6eb1c3cb3cf9092122349967f717c56ca
Add internal function evp_generic_do_all()

This function is used to traverse all algorithm implementations for a
given operation type, and execute the given function for each of them.

For each algorithm implementation, a method is created and passed to
the given function, and then freed after that function's return.  If
the caller wishes to keep the method for longer, they must call the
appropriate up_ref function on the method, and they must also make
sure to free the passed methods at some point.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9356)
crypto/evp/evp_fetch.c
crypto/evp/evp_locl.h