diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-03 22:41:59 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-03 22:41:59 +0200 |
commit | a6ab93937bee7bf692556ba59b691726d558f444 (patch) | |
tree | 64606c8297f2823b19a8dea183aeb9cde5826100 /src/app.c | |
parent | 22e98db6e211b41c802fcf671cf2dd63fdd3f9d5 (diff) |
Creating a certificate import dialog
Just the widgets thus far.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -994,6 +994,14 @@ static iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) { | |||
994 | return iFalse; | 994 | return iFalse; |
995 | } | 995 | } |
996 | 996 | ||
997 | iBool handleCertificateImportCommands_(iWidget *dlg, const char *cmd) { | ||
998 | if (equal_Command(cmd, "certimport.accept") || equal_Command(cmd, "cancel")) { | ||
999 | destroy_Widget(dlg); | ||
1000 | return iTrue; | ||
1001 | } | ||
1002 | return iFalse; | ||
1003 | } | ||
1004 | |||
997 | iBool willUseProxy_App(const iRangecc scheme) { | 1005 | iBool willUseProxy_App(const iRangecc scheme) { |
998 | return schemeProxy_App(scheme) != NULL; | 1006 | return schemeProxy_App(scheme) != NULL; |
999 | } | 1007 | } |
@@ -1403,6 +1411,11 @@ iBool handleCommand_App(const char *cmd) { | |||
1403 | setCommandHandler_Widget(dlg, handleIdentityCreationCommands_); | 1411 | setCommandHandler_Widget(dlg, handleIdentityCreationCommands_); |
1404 | return iTrue; | 1412 | return iTrue; |
1405 | } | 1413 | } |
1414 | else if (equal_Command(cmd, "ident.import")) { | ||
1415 | iWidget *dlg = makeCertificateImport_Widget(); | ||
1416 | setCommandHandler_Widget(dlg, handleCertificateImportCommands_); | ||
1417 | return iTrue; | ||
1418 | } | ||
1406 | else if (equal_Command(cmd, "ident.signin")) { | 1419 | else if (equal_Command(cmd, "ident.signin")) { |
1407 | const iString *url = collect_String(suffix_Command(cmd, "url")); | 1420 | const iString *url = collect_String(suffix_Command(cmd, "url")); |
1408 | signIn_GmCerts( | 1421 | signIn_GmCerts( |