diff options
author | Роман Донченко <dpb@corrigendum.ru> | 2018-04-09 01:15:01 +0300 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2018-05-15 12:47:06 +0000 |
commit | 3ba56ce586dbad693f1865a7241d4cd1152cd761 (patch) | |
tree | 5f55b8ac6649e3b5f724e1eb5dfd10ca29c06442 /wiretap/file_access.c | |
parent | 48fac2a18debb2969413e03f3d88bbb9c31500ae (diff) |
wiretap: Add a reader for files in the PEM-like format specified by RFC 7468
Change-Id: I8109025120d01c915f3a9d5550aa9272ec83893a
Reviewed-on: https://code.wireshark.org/review/27334
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r-- | wiretap/file_access.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 0c054c4670..2e501dfeef 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -73,6 +73,7 @@ #include "nettrace_3gpp_32_423.h" #include "mplog.h" #include "dpa400.h" +#include "pem.h" /* * Add an extension, and all compressed versions thereof, to a GSList @@ -353,6 +354,7 @@ static const struct open_info open_info_base[] = { { "MIME Files Format", OPEN_INFO_MAGIC, mime_file_open, NULL, NULL, NULL }, { "Micropross mplog", OPEN_INFO_MAGIC, mplog_open, "mplog", NULL, NULL }, { "Unigraf DPA-400 capture", OPEN_INFO_MAGIC, dpa400_open, "bin", NULL, NULL }, + { "ASN.1 (PEM-like encoding)", OPEN_INFO_MAGIC, pem_open, "pem;crt", NULL, NULL }, { "Novell LANalyzer", OPEN_INFO_HEURISTIC, lanalyzer_open, "tr1", NULL, NULL }, /* * PacketLogger must come before MPEG, because its files @@ -1610,6 +1612,11 @@ static const struct file_type_subtype_info dump_open_table_base[] = { /* WTAP_FILE_TYPE_SUBTYPE_DPA400 */ { "Unigraf DisplayPort AUX channel monitor output parser", "dpa400", "bin", NULL, FALSE, FALSE, 0, + NULL, NULL, NULL }, + + /* WTAP_FILE_TYPE_SUBTYPE_PEM */ + { "ASN.1 (PEM-like encoding)", "pem", NULL, NULL, + FALSE, FALSE, 0, NULL, NULL, NULL } }; |