diff options
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( |