importing keys with ".asc" and application/octet-stream
authorVolker Birk <vb@pep-project.org>
Wed, 14 Oct 2015 01:58:15 +0200
changeset 37566e48c55cd7a
parent 373 67a975761b69
child 376 295bb70722ef
importing keys with ".asc" and application/octet-stream
src/message_api.c
     1.1 --- a/src/message_api.c	Sun Oct 11 15:28:20 2015 +0200
     1.2 +++ b/src/message_api.c	Wed Oct 14 01:58:15 2015 +0200
     1.3 @@ -778,8 +778,7 @@
     1.4          if (bl->mime_type == NULL ||
     1.5                      is_mime_type(bl, "application/octet-stream")) {
     1.6              if (is_fileending(bl, ".pgp") || is_fileending(bl, ".gpg") ||
     1.7 -                    is_fileending(bl, ".key") ||
     1.8 -                    string_equality(bl->filename, "key.asc"))
     1.9 +                    is_fileending(bl, ".key") || is_fileending(bl, ".asc"))
    1.10                  import_key(session, bl->value, bl->size);
    1.11          }
    1.12          else if (is_mime_type(bl, "application/pgp-keys")) {