OpenSSL in base shared object version number is 30

From: Reshad Patuck <reshadpatuck1_at_gmail.com>
Date: Sun, 12 May 2024 06:49:14 UTC
Hi,

I am running FreeBSD 14.0 and noticed that the shared library version for
OpenSSL seems to be 30 on my system (libcrypto.so.30 and libssl.so.30).
This seems to be in contrast to 3 which is the value of SHLIB_VERSION in
the src repository.
https://gitlab.com/FreeBSD/freebsd-src/-/blob/releng/14.0/crypto/openssl/VERSION.dat?ref_type=heads#L7

Also it seems like when building stock upstream OpenSSL (not from ports or
base) the library versions seem to be 3 (libcrypto.so.3 and libssl.so.3).
This seems to also be the case across multiple Linux distributions that use
OpenSSL 3.

While in my opinion 30 as a version for 3.0.x is better so that we can do
31 for OpenSSL 3.1.x in future versions I can't seem to find where the
value 30 is being generated from.
Any help understanding this will be much appreciated.

Thanks,
Reshad