gwenhywfar 5.14.1
error.c File Reference
#include "error_p.h"
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "gwenhywfar/debug.h"
#include "gwenhywfar/misc.h"
#include "gwenhywfar/inetsocket.h"
#include "gwenhywfar/inetaddr.h"
#include "gwenhywfar/libloader.h"
Include dependency graph for error.c:

Go to the source code of this file.

Macros

#define I18N(m)
#define I18S(m)

Functions

int GWEN_Error_ModuleFini (void)
int GWEN_Error_ModuleInit (void)
const char * GWEN_Error_SimpleToString (int i)
 Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown codes.
int GWEN_Error_ToString (int c, char *buffer, int bsize)

Macro Definition Documentation

◆ I18N

#define I18N ( m)
Value:
m

Definition at line 42 of file error.c.

Referenced by _checkPlugin(), _recvPacket(), _recvPacketToSio(), _tryReadPasswdViaInputBox(), getCryptToken(), GWEN_Crypt_Token_BeginEnterPin(), GWEN_Crypt_Token_EndEnterPin(), GWEN_Crypt_Token_GetPin(), GWEN_Crypt_Token_InsertCorrectToken(), GWEN_Crypt_Token_InsertToken(), GWEN_Crypt_Token_PluginManager_CheckToken(), GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenOHBCI__Decode(), GWEN_Crypt_TokenOHBCI_Create(), GWEN_Crypt_TokenOHBCI_Read(), GWEN_Crypt_TokenOHBCI_Write(), GWEN_Date__fillTmplChars(), GWEN_Error_SimpleToString(), GWEN_Gui_CGui__input(), GWEN_Gui_CheckCertBuiltIn(), GWEN_Gui_DialogBased_ProgressEnd(), GWEN_Gui_ShowError(), GWEN_Gui_WaitForSockets(), GWEN_HttpSession_ConnectionTest(), GWEN_HttpSession_RecvCommand(), GWEN_HttpSession_RecvPacket(), GWEN_HttpSession_RecvPacketToFile(), GWEN_HttpSession_SendPacket(), GWEN_HttpSession_SendStatus(), GWEN_MDigest_CheckFileTree(), GWEN_PasswordStore_EncryptWriteFile(), GWEN_PasswordStore_ReadDecryptFile(), GWEN_Sar__UnpackArchive(), GWEN_Sar_AddAndDigestFileReg(), GWEN_Sar_CheckArchive(), GWEN_Sar_ExtractAndDigestFileReg(), GWEN_Sar_Sign(), GWEN_Sar_Verify(), GWEN_SyncIo_Http_RecvBody(), GWEN_SyncIo_Http_RecvBodyToSio(), GWEN_SyncIo_Socket_Connect(), GWEN_SyncIo_Tls_Connect(), GWEN_SyncIo_Tls_Disconnect(), GWEN_SyncIo_Tls_GetPeerCert(), GWEN_SyncIo_Tls_Prepare(), GWEN_SyncIo_Tls_Read(), GWEN_SyncIo_Tls_ShowCipherInfo(), GWEN_SyncIo_Tls_Write(), and main().

◆ I18S

#define I18S ( m)
Value:
m

Definition at line 43 of file error.c.

Referenced by GWEN_Gui_CheckCertBuiltIn().

Function Documentation

◆ GWEN_Error_ModuleFini()

int GWEN_Error_ModuleFini ( void )

Deinitializes this module.

Definition at line 71 of file error.c.

Referenced by GWEN_Fini().

Here is the caller graph for this function:

◆ GWEN_Error_ModuleInit()

int GWEN_Error_ModuleInit ( void )

Initializes this module.

Definition at line 63 of file error.c.

References DBG_VERBOUS, and GWEN_LOGDOMAIN.

Referenced by GWEN_Init().

Here is the caller graph for this function:

◆ GWEN_Error_SimpleToString()

◆ GWEN_Error_ToString()

int GWEN_Error_ToString ( int c,
char * buffer,
int bsize )

Dumps the string corresponding to the given erro code.

Returns
1 detailed error message created, 0 otherwise
Parameters
cerror code
bufferpointer to a buffer to receive the message
bsizesize of that buffer in bytes

Definition at line 78 of file error.c.

References GWEN_Error_SimpleToString().

Here is the call graph for this function: