Skip to content
Snippets Groups Projects
Commit 02fc3733 authored by deuce's avatar deuce
Browse files

Not every crypt error is due to flushing data!

parent 8bacd626
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ static int do_cryptAttributeString(const CRYPT_CONTEXT session, CRYPT_ATTRIBUTE_ ...@@ -92,7 +92,7 @@ static int do_cryptAttributeString(const CRYPT_CONTEXT session, CRYPT_ATTRIBUTE_
#define GCES(status, pdata, estr, action) do { \ #define GCES(status, pdata, estr, action) do { \
int GCES_level; \ int GCES_level; \
get_crypt_error_string(status, pdata->session, &estr, "flushing data", &GCES_level); \ get_crypt_error_string(status, pdata->session, &estr, action, &GCES_level); \
if (estr) { \ if (estr) { \
lprintf(GCES_level, "%04d %s", p->sock, estr); \ lprintf(GCES_level, "%04d %s", p->sock, estr); \
free_crypt_attrstr(estr); \ free_crypt_attrstr(estr); \
...@@ -101,7 +101,7 @@ static int do_cryptAttributeString(const CRYPT_CONTEXT session, CRYPT_ATTRIBUTE_ ...@@ -101,7 +101,7 @@ static int do_cryptAttributeString(const CRYPT_CONTEXT session, CRYPT_ATTRIBUTE_
#define GCESH(status, socket, handle, estr, action) do { \ #define GCESH(status, socket, handle, estr, action) do { \
int GCESH_level; \ int GCESH_level; \
get_crypt_error_string(status, handle, &estr, "flushing data", &GCESH_level); \ get_crypt_error_string(status, handle, &estr, action, &GCESH_level); \
if (estr) { \ if (estr) { \
lprintf(GCESH_level, "%04d %s", socket, estr); \ lprintf(GCESH_level, "%04d %s", socket, estr); \
free_crypt_attrstr(estr); \ free_crypt_attrstr(estr); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment