Skip to content
Snippets Groups Projects
Commit b1303ee3 authored by cellframe.doc's avatar cellframe.doc Committed by Roman Khlopkov
Browse files

Add hotfix for ticket 5461

parent bbcfc8c1
No related branches found
No related tags found
No related merge requests found
Subproject commit b78f52ee44bc6bf20d166a5908844e68b86a4c88
Subproject commit 80ce86a8d6440550e30a20c26f48852020bfce1e
......@@ -216,6 +216,17 @@ static int s_wallet_create(int argc, const char **argv) {
s_help( );
exit( -2004 );
}
//
// Check unsupported tesla algorithm
//
if (l_sig_type.type == SIG_TYPE_TESLA)
{
log_it( L_ERROR, "Tesla algorithm is not supported, please, use another variant");
exit( -2004 );
}
l_wallet = dap_chain_wallet_create(l_wallet_name, s_system_wallet_dir, l_sig_type);
return 0;
......@@ -270,10 +281,18 @@ static int s_cert_create(int argc, const char **argv) {
dap_enc_key_type_t l_key_type = DAP_ENC_KEY_TYPE_NULL;
//
// Check unsupported tesla algorithm
//
if (dap_strcmp (argv[4],"sig_tesla") == 0)
{
log_it( L_ERROR, "Tesla algorithm is not supported, please, use another variant");
exit(-600);
}
if ( dap_strcmp (argv[4],"sig_bliss") == 0 ){
l_key_type = DAP_ENC_KEY_TYPE_SIG_BLISS;
} else if ( dap_strcmp (argv[4],"sig_tesla") == 0) {
l_key_type = DAP_ENC_KEY_TYPE_SIG_TESLA;
} else if ( dap_strcmp (argv[4],"sig_picnic") == 0){
l_key_type = DAP_ENC_KEY_TYPE_SIG_PICNIC;
} else if ( dap_strcmp(argv[4],"sig_dil") == 0){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment