Since we now have a separate `openssl_shim.{c,h}` files in the `dns` library, we can place the exisintg shims there.
OpenSSL 3.0.0 deprecates the ERR_get_error_line_data() function. Use ERR_get_error_all() instead of ERR_get_error_line_data() and create a shim to use the old variant for the older OpenSSL versions which don't have the newer ERR_get_error_all().