Open Lipovlan opened 1 year ago
You might have some use of https://github.com/provider-corner/libprov, which is a very light weight library to help with some common things I've found. You can have it a submodule, add add_subdirectory(libprov)
in CMakeLists.txt and link your provider with libprov
, or you can copy err.h
and err.c
and adapt them to your liking (they're licensed CC0, so not encumbering at all).
Thanks, that looks neat!
OpenSSL has function that
core
passes to the provider such asOSSL_FUNC_CORE_NEW_ERROR
,OSSL_FUNC_CORE_SET_ERROR_DEBUG
orOSSL_FUNC_CORE_VSET_ERROR
. These should be used instead of the crudedebug.h
functions currently implemented.