From 23a4433b1efd8601f98cc5f15b8aa847a6c74a98 Mon Sep 17 00:00:00 2001 From: Maxim Krasylnikov <maxim.krasylnikov@demlabs.net> Date: Wed, 4 Apr 2018 18:39:05 +0600 Subject: [PATCH] first fork commit --- .gitignore | 52 ----------------------------------- crypto/dap_enc_key.h | 3 +- http/dap_http_client_simple.c | 2 +- 3 files changed, 3 insertions(+), 54 deletions(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 4bf974a899..0000000000 --- a/.gitignore +++ /dev/null @@ -1,52 +0,0 @@ -# Prerequisites -*.d -*.autosave -# Object files -*.o -*.ko -*.obj -*.elf - -# Linker output -*.ilk -*.map -*.exp - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex - -# Debug files -*.dSYM/ -*.su -*.idb -*.pdb - -# Kernel Module Compile Results -*.mod* -*.cmd -.tmp_versions/ -modules.order -Module.symvers -Mkfile.old -dkms.conf diff --git a/crypto/dap_enc_key.h b/crypto/dap_enc_key.h index 739d2a1dd6..1ab9e2cdde 100644 --- a/crypto/dap_enc_key.h +++ b/crypto/dap_enc_key.h @@ -74,12 +74,13 @@ typedef enum dap_enc_key_type{ DAP_ENC_KEY_TYPE_AES, // Symmetric AES // (Bos, Ducas, Kiltz, Lepoint, Lyubashevsky, Schwabe, Shanck, Stehlé) // Real World Crypto 2017, https://eprint.iacr.org/2017/634) // using the reference C implementation of Kyber from pq-crystals/kyber - DAP_ENC_KEY_TYPE_SIG_PICNIC // signature based on zero-knowledge proof as specified in + DAP_ENC_KEY_TYPE_SIG_PICNIC, // signature based on zero-knowledge proof as specified in // Post-Quantum Zero-Knowledge and Signatures from Symmetric-Key Primitives // (Melissa Chase and David Derler and Steven Goldfeder and Claudio Orlandi // and Sebastian Ramacher and Christian Rechberger and Daniel Slamanig and Greg Zaverucha // https://eprint.iacr.org/2017/279.pdf), using the optimized implemenation // from https://github.com/IAIK/Picnic + DAP_ENC_KEY_TYPE_FNAM2 //ХЗ ЧТО, ДОБÐВИЛ ЧТОБЫ БЫЛО И ÐРМЕÐЯ КОМПИЛЯТОРÐЕ РУГÐЛСЯ:( } dap_enc_key_type_t; struct dap_enc_key; diff --git a/http/dap_http_client_simple.c b/http/dap_http_client_simple.c index 534d7c2584..9a7c207af2 100644 --- a/http/dap_http_client_simple.c +++ b/http/dap_http_client_simple.c @@ -287,7 +287,7 @@ static void* dap_http_client_thread(void * arg) case CURLE_COULDNT_RESOLVE_HOST: l_err_code = 3 ; log_it(L_ERROR, "Couldn't resolve destination address"); break; case CURLE_OPERATION_TIMEDOUT: l_err_code = 4 ; log_it(L_ERROR, "HTTP request timeout"); break; case CURLE_URL_MALFORMAT: l_err_code = 5 ; log_it(L_ERROR, "Wrong URL format in the outgoing request"); break; - case CURLE_WEIRD_SERVER_REPLY: l_err_code = 6 ; log_it(L_WARNING, "Weird server reply"); break; + //case CURLE_WEIRD_SERVER_REPLY: l_err_code = 6 ; log_it(L_WARNING, "Weird server reply"); break; case CURLE_OK:{ l_is_ok = true; log_it(L_DEBUG, "Response size %u",l_client_internal->response_size); -- GitLab