Replies: 3 comments 4 replies
-
|
@xxxxxliil @blaisewang Have a better idea? |
Beta Was this translation helpful? Give feedback.
-
我希望可以在 #661 做到你希望的更改,请告诉我应该怎么做 |
Beta Was this translation helpful? Give feedback.
-
|
您好,首先感谢这个项目, 另外:如果系统准备好了,如果输出完整的明确的信息是不是更直观? 目前,在我的manjaro使用浏览器,或者curl baidu.com都得不到任何信息! 谢谢! 2025-08-06T16:23:51+08:00 WRN Try to detect libcrypto.so.3. If you have doubts, See #675 for more information. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
background
@xxxxxliil reported a defect in #609 and determined that this was a problem caused by the failure to search for version number information in the dynamic link library corresponding to
OpenSSL 3.0and newer.@xxxxxliil gave a fix in PR #661. After discussions between @cfc4n and @blaisewang, I have a clearer understanding of these differences, and for this reason, I have given a more precise fix.
This article explains some of the considerations for the new approach.
OpenSSL changes
In 2019, OPENSSL_VERSION_TEXT information is stored in
include/openssl/opensslv.h(Generated by build.info )refer:
openssl/openssl@f386632
openssl/openssl#10203
Later, the
OpenSSL 1.1.xversion will buildlibssl.so\libcrypto.so, and the.rodatasection in the two link library files containsOPENSSL_VERSION_TEXTinformation.After OpenSSL 3.0, the introduction of the header file was changed. In the relevant code of libssl.so,
OPENSSL_VERSIONrelated strings are no longer referenced, so theOPENSSL_VERSION_TEXTinformation is no longer included in the 3.0 version oflibssl.so.via #661 (comment)
Solutions
OPENSSL_VERSION_TEXTcannot be detected fromlibssl.so.*, determine whether the current dynamic link library islibssl.so.3libcrypto.so.3file in the same directory and detect the version number information.potential problems
libcrypto.so.3file may not be in the same directory aslibssl.so.3.For these problems, it should be a small probability event, unless you manually install many versions and mess up the system environment. However, some warning information will be printed to prompt the user to perform manual detection.
I will send a new PR to fix it.
refer
openssl/openssl#10203
openssl/openssl#19801
Beta Was this translation helpful? Give feedback.
All reactions