diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-21 08:30:39 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-21 08:30:39 +0300 |
commit | 911a56b56c4f9ec5d0c4f1fd15189102bc97fcdb (patch) | |
tree | d8a6cb36c6a7cacad9cd1b8c94755f3f974084e4 /src/gmutil.c | |
parent | 548034e167bd94d21ef9bcc2e6d2d8cbfaeb3d06 (diff) |
Added identity exporting
Exporting an identity will display it in a new tab in PEM encoded format, where it can be saved or copied.
IssueID #236
Diffstat (limited to 'src/gmutil.c')
-rw-r--r-- | src/gmutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index 718a0a9a..2c9ba4eb 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -475,6 +475,9 @@ const char *mediaType_Path(const iString *path) { | |||
475 | endsWithCase_String(path, ".hpp")) { | 475 | endsWithCase_String(path, ".hpp")) { |
476 | return "text/plain"; | 476 | return "text/plain"; |
477 | } | 477 | } |
478 | else if (endsWithCase_String(path, ".pem")) { | ||
479 | return "application/x-pem-file"; | ||
480 | } | ||
478 | else if (endsWithCase_String(path, ".zip")) { | 481 | else if (endsWithCase_String(path, ".zip")) { |
479 | return "application/zip"; | 482 | return "application/zip"; |
480 | } | 483 | } |