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

/usr/lib64/engines-3/gost.so #466

Open
ethaniel opened this issue Dec 16, 2024 · 2 comments
Open

/usr/lib64/engines-3/gost.so #466

ethaniel opened this issue Dec 16, 2024 · 2 comments

Comments

@ethaniel
Copy link

ethaniel commented Dec 16, 2024

Здравствуйте, спасибо за библиотеку!

Собираю пакет с CMAKE_INSTALL_PREFIX:PATH: cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/openssl-gost -DOPENSSL_ROOT_DIR=/usr/local/openssl-gost -DCMAKE_BUILD_TYPE=Release .., но в итоге cmake кладет файл gost.so в корневую папку /usr/lib64/engines-3/gost.so, игнорируя префикс.

Правильно было бы, чтобы он учитывал префикс и клал в /usr/local/openssl-gost/lib64/engines-3/gost.so

install_manifest.txt:

/usr/local/openssl-gost/bin/gostsum
/usr/local/openssl-gost/bin/gost12sum
/usr/local/openssl-gost/share/man/man1/gostsum.1
/usr/local/openssl-gost/share/man/man1/gost12sum.1
/usr/lib64/engines-3/gost.so
/usr/local/openssl-gost/lib64/ossl-modules/gostprov.so
/usr/local/openssl-gost/lib64/libgost.so
/usr/local/openssl-gost/lib64/libgostprov.so
/usr/local/openssl-gost/share/cmake/GostEngine/GostEngineConfig.cmake
/usr/local/openssl-gost/share/cmake/GostEngine/GostEngineConfig-release.cmake
/usr/local/openssl-gost/share/cmake/GostProvider/GostProviderConfig.cmake
/usr/local/openssl-gost/share/cmake/GostProvider/GostProviderConfig-release.cmake

Можно поправить?

@ethaniel
Copy link
Author

ethaniel commented Dec 16, 2024

Костыль (OPENSSL_ENGINES_DIR):

cmake -DOPENSSL_ENGINES_DIR=/usr/local/openssl-gost/lib64/engines-3 -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/openssl-gost -DOPENSSL_ROOT_DIR=/usr/local/openssl-gost -DCMAKE_BUILD_TYPE=Release ..

@ethaniel
Copy link
Author

example.conf и install.md также имеют ошибки.

Правильный формат openssl.conf (я собираю в /usr/local/openssl-gost):

openssl_conf = openssl_def
[openssl_def]
engines = engine_section

[engine_section]
gost = gost_section

[gost_section]
engine_id = gost
dynamic_path = /usr/local/openssl-gost/lib64/engines-3/gost.so
default_algorithms = ALL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant