aboutsummaryrefslogtreecommitdiffstats
path: root/src/data-identify.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-07-01Use gpgrt_b64dec in libgpg-error.NIIBE Yutaka1-5/+5
* src/b64dec.c: Remove. * src/Makefile.am (main_sources): Remove b64dec.c. * src/data-identify.c (pgp_binary_detection): Use gpgrt_b64dec in libgpg-error. -- gpgrt_b64dec is available in libgpg-error 1.27 and it is already in use by JSON support. GnuPG-bug-id: 7180 Signed-off-by: NIIBE Yutaka <[email protected]>
2023-03-08core: Also detect legacy X.509 v0 certificates.Werner Koch1-19/+31
* src/data-identify.c (basic_detection): Loose the detection of X.509 certs.
2021-06-14core: Also detect AuthEnvelopedData (AEAD for CMS)Werner Koch1-2/+2
* src/data-identify.c (basic_detection): Add OID. Signed-off-by: Werner Koch <[email protected]>
2018-11-16Add SPDX identifiers to most source filesWerner Koch1-16/+17
-- Signed-off-by: Werner Koch <[email protected]>
2018-11-08spelling: fix misspellingsDaniel Kahn Gillmor1-2/+2
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2016-11-16doc: Replace http: by https: in core source files.Werner Koch1-1/+1
-- Signed-off-by: Werner Koch <[email protected]>
2016-09-23Fix spellingDaniel Kahn Gillmor1-1/+1
* lang/cpp/src/context.h, lang/qt/src/protocol.h, lang/qt/src/wkspublishjob.h, src/data-identify.c, src/engine-gpg.c: minor spelling cleanup. -- Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2016-09-13core: Mark unused function args.Werner Koch1-0/+2
Signed-off-by: Werner Koch <[email protected]>
2016-08-10core: Do not identify PNG files as PGP signatures.Werner Koch1-0/+5
* src/data-identify.c (next_openpgp_packet): Blacklist PNG files. -- GnuPG-bug-id: 2314 Signed-off-by: Werner Koch <[email protected]>
2016-07-01core: Fix identify for armored detached sigsAndre Heinecke1-1/+1
* src/data-identify.c (basic_detection): Return signature for signature. -- This causes identify to return signature for both binary and ascii armored detached signatures where previously it would have returned signed for armored signatures and signature for binary signatures. GnuPG-Bug-Id: 2314
2016-06-23core: Add closer inspection of "PGP MESSAGE".Werner Koch1-2/+27
* src/data-identify.c (inspect_pgp_message): New. (basic_detection): Un-const arg DATA. Call inspect_pgp_message. Signed-off-by: Werner Koch <[email protected]>
2016-06-22core: Detect compressed signed OpenPGP data.Werner Koch1-9/+18
* src/data-identify.c (next_openpgp_packet): Allow partial encoding. (pgp_binary_detection): Handle compressed packets. -- Signed-off-by: Werner Koch <[email protected]>
2016-06-21core: Enhance gpgme_data_identify to detect binary PGP messages.Werner Koch1-1/+229
* src/gpgme.h.in (GPGME_DATA_TYPE_PGP_ENCRYPTED): New. (GPGME_DATA_TYPE_PGP_SIGNATURE): New. * src/data-identify.c: Add enum for OpenPGP packet types. (buf32_to_ulong): New. (next_openpgp_packet): New. Based on the gnupg/kbx/keybox-openpgp.c implementation and relicensed to LGPL by g10 Code. (pgp_binary_detection): New. (basic_detection): Call pgp_binary_detection instead of returning unknown. Signed-off-by: Werner Koch <[email protected]>
2013-08-09Add function gpgme_data_identify.Werner Koch1-0/+247
* src/gpgme.h.in (gpgme_data_type_t): New. (gpgme_data_identify): New prototype. * src/data-identify.c: New. * src/parsetlv.c, src/parsetlv.h: New. Take from gpa. * src/libgpgme.vers, src/gpgme.def: Add gpgme_data_identify. * src/gpgme-tool.c (status): Add STATUS_IDENTIFY_RESULT. (gt_identify): New. (cmd_identify): New. (hlp_passwd): Move close to cmd_passwd. -- It is often useful to have a way to identify the data which needs processing. This is such a common task that it makes sense to implement this in gpgme to avoid diverging implementations.