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

Erro while building (OPENSSL_ALGORITHM_DEFINES no longer supported) #92

Open
ghost opened this issue May 13, 2021 · 0 comments
Open

Erro while building (OPENSSL_ALGORITHM_DEFINES no longer supported) #92

ghost opened this issue May 13, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented May 13, 2021

supeuser@supeuser-MS-7C52:~/Desktop/CryptoKernel$ make
==== Building ck (debug_static) ====
Creating obj/Static/Debug/ck
AVRR.cpp
Lyra2.c
Lyra2RE.c
NoiseClient.cpp
NoiseServer.cpp
NoiseUtil.cpp
PoW.cpp
Sponge.c
base64.cpp
blake.c
blockchain.cpp
blockchaintypes.cpp
bmw.c
contract.cpp
crypto.cpp
In file included from /usr/include/openssl/evp.h:66,
                 from src/kernel/crypto.cpp:24:
/usr/include/x86_64-linux-gnu/openssl/opensslconf.h:20:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
   20 | # error OPENSSL_ALGORITHM_DEFINES no longer supported
      |   ^~~~~
src/kernel/crypto.cpp: In member function ‘std::string CryptoKernel::Crypto::getPublicKey()’:
src/kernel/crypto.cpp:104:18: error: ‘EC_KEY_key2buf’ was not declared in this scope
  104 |         keyLen = EC_KEY_key2buf(eckey, EC_KEY_get_conv_form(eckey), &publicKey, NULL);
      |                  ^~~~~~~~~~~~~~
src/kernel/crypto.cpp: In member function ‘std::string CryptoKernel::Crypto::getPrivateKey()’:
src/kernel/crypto.cpp:120:18: error: ‘EC_KEY_priv2buf’ was not declared in this scope; did you mean ‘EC_KEY_print_fp’?
  120 |         keyLen = EC_KEY_priv2buf(eckey, &privateKey);
      |                  ^~~~~~~~~~~~~~~
      |                  EC_KEY_print_fp
src/kernel/crypto.cpp: In member function ‘bool CryptoKernel::Crypto::setPublicKey(std::string)’:
src/kernel/crypto.cpp:134:9: error: ‘EC_KEY_oct2key’ was not declared in this scope; did you mean ‘EC_KEY_check_key’?
  134 |     if(!EC_KEY_oct2key(eckey, (unsigned char*)decodedKey.c_str(),
      |         ^~~~~~~~~~~~~~
      |         EC_KEY_check_key
src/kernel/crypto.cpp: In member function ‘bool CryptoKernel::Crypto::setPrivateKey(std::string)’:
src/kernel/crypto.cpp:145:9: error: ‘EC_KEY_oct2priv’ was not declared in this scope
  145 |     if(!EC_KEY_oct2priv(eckey, (unsigned char*)decodedKey.c_str(),
      |         ^~~~~~~~~~~~~~~
src/kernel/crypto.cpp: In member function ‘bool CryptoKernel::Crypto::setPublicKey(std::string)’:
src/kernel/crypto.cpp:140:1: warning: control reaches end of non-void function [-Wreturn-type]
  140 | }
      | ^
src/kernel/crypto.cpp: In member function ‘bool CryptoKernel::Crypto::setPrivateKey(std::string)’:
src/kernel/crypto.cpp:168:1: warning: control reaches end of non-void function [-Wreturn-type]
  168 | }
      | ^
make[1]: *** [ck.make:231: obj/Static/Debug/ck/crypto.o] Error 1
make: *** [Makefile:44: ck] Error 2
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

0 participants