aes: specify the required OpenSSL version

The code in the aes elements assumes OpenSSL >= 1.1.0:

  - implicit library initialization;
  - version retrieved with OpenSSL_version(OPENSSL_VERSION);

and it fails to build with older versions.

Specify the required OpenSSL version explicitly in meson.build so that
the elements are excluded on older systems (e.g. Ubuntu 16.04) and the
rest of GStreamer can still build.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1067>
This commit is contained in:
Antonio Ospite 2021-10-06 13:38:35 +02:00 committed by GStreamer Marge Bot
parent 8d7dde2587
commit 7f001b6311

View file

@ -6,7 +6,7 @@ aes_sources = [
]
aes_cargs = []
aes_dep = dependency('openssl', required : get_option('aes'))
aes_dep = dependency('openssl', version : '>= 1.1.0', required : get_option('aes'))
if aes_dep.found()
aes_cargs += ['-DHAVE_OPENSSL']
else