Git Product home page Git Product logo

Comments (5)

norguhtar avatar norguhtar commented on June 12, 2024
  • check openssl version on your system. If it 1.1.1 install openssl headers in your system.
  • download and unpack 1.1.0.3 release from this page https://github.com/gost-engine/engine/releases in directory with privkey.c
  • create build.sh with this content
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

from privkey.

kulikan avatar kulikan commented on June 12, 2024

Thx Anatoliy!

from privkey.

DiamondMax avatar DiamondMax commented on June 12, 2024

@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

from privkey.

norguhtar avatar norguhtar commented on June 12, 2024

@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

from privkey.

DiamondMax avatar DiamondMax commented on June 12, 2024

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", хотя пин-код от контейнера ввожу правильный (под виндой из того же контейнера извлекается без ошибок).

from privkey.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.