The hc_evp_md_init, hc_evp_md_update and hc_evp_md_final typedefs are defined as functions returning an int, but null_Init, null_Update and null_Final are defined as void, and cast with the typedef when assigned to the function vector. This might result in some uninitialized value being returned to the caller, if some of them make use of the return value. It also causes warnings if the -Wcast-function-type warning is enabled. Change the type to in to match the typedef, and return 1 (success).
28 KiB
28 KiB