|
This implementation can be used in interactive or non-interactive mode. In non-interactive mode all input requests which can not be asked automatically will return an error. However, most questions concern input of pins and password, and for those the password cache can be used. Another frequent source for input requests is the acknowledging of TLS certificates which can also be handled automatically by using the certificate cache (see below).
Also, in non-interactive mode all calls to GWEN_GUI_MessageBox will be handled different. If the severity of a message is GWEN_GUI_MSG_FLAGS_SEVERITY_DANGEROUS or higher an error is returned. Otherwise the default result (as indicated by the arguments of GWEN_GUI_MessageBox) is returned instead.
These settings together allow for a non-interactive use.
|
| GWENHYWFAR_API DEPRECATED int | GWEN_Gui_CGui_GetIsNonInteractive (const GWEN_GUI *gui) |
| |
| GWENHYWFAR_API DEPRECATED void | GWEN_Gui_CGui_SetIsNonInteractive (GWEN_GUI *gui, int i) |
| |
This is an implementation of GWEN_GUI for the console. It supports interactive and non-interactive mode, provides a cache for passwords/pins and TLS certificates. It converts UTF8 messages into other character sets if requested (e.g. for consoles which do not support UTF8).
◆ GWEN_Gui_CGui_GetAcceptAllValidCerts()
◆ GWEN_Gui_CGui_GetCertDb()
Returns a pointer to the internal certificate cache. The GUI object remains the owner of the object returned (if any).
◆ GWEN_Gui_CGui_GetCharSet()
◆ GWEN_Gui_CGui_GetIsNonInteractive()
◆ GWEN_Gui_CGui_GetPasswordDb()
Returns a pointer to the internally used password cache. The GUI object remains the owner of the object returned (if any).
◆ GWEN_Gui_CGui_new()
◆ GWEN_Gui_CGui_SetAcceptAllValidCerts()
In non-interactive mode only known certificates are accepted. If the parameter i unequals zero new certs are also accepted if they are valid (which means signed by a known and trusted authority, not expired etc). Invalid certificates are always rejected in non-interactive mode.
◆ GWEN_Gui_CGui_SetCertDb()
Set the certificate DB. Takes over the given DB.
◆ GWEN_Gui_CGui_SetCharSet()
◆ GWEN_Gui_CGui_SetIsNonInteractive()
◆ GWEN_Gui_CGui_SetPasswordDb()
Set the password DB. Takes over the given DB.
- Parameters
-
| gui | GUI object |
| dbPasswords | password cache |
| persistent | if !=0 then the passwords come from a password file and a request to clear the password cache will be ignored. |