Convert some libssl local functions to size_t