Skip to content
Snippets Groups Projects
Commit 78135d64 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] small rename

parent d715af1a
No related branches found
No related tags found
No related merge requests found
Subproject commit e0108b366357deedef9be328fc342da24e53f648 Subproject commit b80d2643476eb0894e95eeacb897e689f4bc3fc8
Subproject commit 44571987e552919312a12d07b0d88ccbd1ef3262 Subproject commit 0a87df3b0c49336349ceefa942f163299c118e68
Subproject commit 19410795f6070bc77cbfa5d39ec0f5ebacdefbb0 Subproject commit 95c55df38eacca2468fe20b74edc903f8094caa0
Subproject commit 4e9cd2022d4bfc0d554128d74fa5b4b532edc88e Subproject commit 0e549d862c53fd305065c0fe5485ba1ea344386b
Subproject commit eb69b4dceb4e34bc55791d957556a8813262d585 Subproject commit 466e6bfc51673370012ff396226a6e24d75fce8b
Subproject commit 246fd896723cb12ff638d5d111022dae6a4a9285 Subproject commit 2564d01f7663a9b3fd0c30d9f2aefe0580b327cd
...@@ -226,11 +226,11 @@ int main(int argc, const char * argv[]) ...@@ -226,11 +226,11 @@ int main(int argc, const char * argv[])
const char * l_cert_pkey_path = argv[4]; const char * l_cert_pkey_path = argv[4];
dap_chain_cert_t * l_cert = dap_chain_cert_add_file(l_cert_name,SYSTEM_CA_DIR); dap_chain_cert_t * l_cert = dap_chain_cert_add_file(l_cert_name,SYSTEM_CA_DIR);
if ( l_cert ){ if ( l_cert ){
l_cert->key_private->pub_key_data_size = dap_enc_gen_key_public_size(l_cert->key_private); l_cert->enc_key->pub_key_data_size = dap_enc_gen_key_public_size(l_cert->enc_key);
if ( l_cert->key_private->pub_key_data_size ){ if ( l_cert->enc_key->pub_key_data_size ){
//l_cert->key_private->pub_key_data = DAP_NEW_SIZE(void, l_cert->key_private->pub_key_data_size); //l_cert->key_private->pub_key_data = DAP_NEW_SIZE(void, l_cert->key_private->pub_key_data_size);
//if ( dap_enc_gen_key_public(l_cert->key_private, l_cert->key_private->pub_key_data) == 0){ //if ( dap_enc_gen_key_public(l_cert->key_private, l_cert->key_private->pub_key_data) == 0){
dap_chain_pkey_t * l_pkey = dap_chain_pkey_from_enc_key( l_cert->key_private ); dap_chain_pkey_t * l_pkey = dap_chain_pkey_from_enc_key( l_cert->enc_key );
if (l_pkey){ if (l_pkey){
FILE * l_file = fopen(l_cert_pkey_path,"w"); FILE * l_file = fopen(l_cert_pkey_path,"w");
if (l_file){ if (l_file){
......
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