Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing yr_get_version API function #2136

Open
gyunaev opened this issue Feb 13, 2025 · 0 comments
Open

Missing yr_get_version API function #2136

gyunaev opened this issue Feb 13, 2025 · 0 comments

Comments

@gyunaev
Copy link

gyunaev commented Feb 13, 2025

Is your feature request related to a problem? Please describe.

Many Linux distros provide and distribute libyara.so as a shared library in a separate package from the applications which use Yara. This is advantageous to applications which use libyara since they can benefit from independent updates.

However there is no API in libyara.so which would allow such an application to determine and show the library version of libyara loaded via dlopen() in runtime.

Describe the solution you'd like

Add an API function:

void yr_get_version( int * major, int * minor, int * micro)
{
  *major = YR_MAJOR_VERSION;
  *minor = YR_MINOR_VERSION;
  *micro = YR_MICRO_VERSION;
}

or something similar.

Describe alternatives you've considered
An alternative would be to rebuild all packages using Yara statically, and stop providing libyara.so but this isn't what Linux distros are doing.

@gyunaev gyunaev changed the title Missing yr_get_version Missing yr_get_version API function Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant