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

Linux support? #2

Open
vktRus opened this issue Apr 24, 2020 · 5 comments
Open

Linux support? #2

vktRus opened this issue Apr 24, 2020 · 5 comments

Comments

@vktRus
Copy link

vktRus commented Apr 24, 2020

Ноw to compile on Linux (Ubuntu 64bit)?

@norguhtar
Copy link

norguhtar commented May 15, 2020

gcc -I/usr/include -Iengine-1.1.0.3 privkey.c engine-1.1.0.3/gost89.c engine-1.1.0.3/gosthash.c \
engine-1.1.0.3/gost_ameth.c engine-1.1.0.3/gost_ctl.c engine-1.1.0.3/gost_asn1.c \
engine-1.1.0.3/gost_ec_sign.c engine-1.1.0.3/e_gost_err.c engine-1.1.0.3/gost_params.c \
engine-1.1.0.3/gosthash2012.c -lcrypto -o privkey
  • make build.sh executable
  • run ./build.sh
    ...
  • PROFIT

@kulikan
Copy link
Owner

kulikan commented Sep 20, 2020

Thx Anatoliy!

@DiamondMax
Copy link

DiamondMax commented May 19, 2022

@norguhtar
Compilation terminated with error
privkey.c:11:10: fatal error: applink.c: No such file or directory
If I comment out this line compilation finishes successfully but exporting key always returns "Error check public key"
Ubuntu 20.04, OpenSSL 1.1.1f, headers installed

@norguhtar
Copy link

@norguhtar Compilation terminated with error privkey.c:11:10: fatal error: applink.c: No such file or directory If I comment out this line compilation finishes successfully but exporting key always returns "Error check public key" Ubuntu 20.04, OpenSSL 1.1.1f, headers installed

Check this yhirose/cpp-httplib#592 (comment)
It should be helped

@DiamondMax
Copy link

DiamondMax commented Jul 15, 2022

Check this yhirose/cpp-httplib#592 (comment)
It should be helped

No, that thread is about compilation on Windows. This file applink.c is required and included only for windows version of OpenSSL.

Там обсуждается компиляция под Windows. Вообще этот файл нужен только для Windows-версии OpenSSL. В Linux-сборку он не входит (об этом пишут в той же ветке). Я пробовал собирать без него, файл компилируется, но работает не корректно: всегда возвращает "Error check public key", хотя пин-код от контейнера ввожу правильный (под виндой из того же контейнера извлекается без ошибок).

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

4 participants