mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fixed importing certs created by newer versions of Mozilla.
This commit is contained in:
parent
f80ad71f1c
commit
38e7c4c50a
9 changed files with 285 additions and 56 deletions
|
@ -1,5 +1,7 @@
|
|||
2005-12-14 Werner Koch <wk@g10code.com>
|
||||
|
||||
* Makefile.am (bin_PROGRAMS): Build gpgparsemail.
|
||||
|
||||
* gpgparsemail.c (pkcs7_begin): New.
|
||||
(parse_message, message_cb): Add support of direct pkcs signatures.
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
|
||||
EXTRA_DIST = Manifest watchgnupg.c \
|
||||
rfc822parse.c rfc822parse.h gpgparsemail.c \
|
||||
addgnupghome gpgsm-gencert.sh
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/common
|
||||
|
@ -36,7 +35,7 @@ else
|
|||
symcryptrun =
|
||||
endif
|
||||
|
||||
bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun}
|
||||
bin_PROGRAMS = gpgconf gpg-connect-agent gpgkey2ssh ${symcryptrun} gpgparsemail
|
||||
if !HAVE_W32_SYSTEM
|
||||
bin_PROGRAMS += watchgnupg
|
||||
endif
|
||||
|
@ -46,6 +45,9 @@ gpgconf_SOURCES = gpgconf.c gpgconf.h gpgconf-comp.c no-libgcrypt.c
|
|||
gpgconf_LDADD = ../jnlib/libjnlib.a \
|
||||
../common/libcommon.a ../gl/libgnu.a @LIBINTL@
|
||||
|
||||
gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h
|
||||
gpgparsemail_LDADD =
|
||||
|
||||
symcryptrun_SOURCES = symcryptrun.c
|
||||
symcryptrun_LDADD = $(LIBUTIL_LIBS) ../jnlib/libjnlib.a \
|
||||
../common/libcommon.a ../gl/libgnu.a \
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
|
||||
/* This utility prints an RFC8222, possible MIME structured, message
|
||||
in an annotated format with the first column having an indicator
|
||||
for the content of the line.. Several options are available to
|
||||
scrutinize the message. S/MIME and OpenPGP suuport is included. */
|
||||
for the content of the line. Several options are available to
|
||||
scrutinize the message. S/MIME and OpenPGP support is included. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -708,6 +708,8 @@ main (int argc, char **argv)
|
|||
" --debug enable additional debug output\n"
|
||||
" --help display this help and exit\n\n"
|
||||
"With no FILE, or when FILE is -, read standard input.\n\n"
|
||||
"WARNING: This tool is under development.\n"
|
||||
" The semantics may change without notice\n\n"
|
||||
"Report bugs to <bug-gnupg@gnu.org>.");
|
||||
exit (0);
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ capitalize_header_name (unsigned char *name)
|
|||
*name = *name - 'A' + 'a';
|
||||
}
|
||||
|
||||
|
||||
#ifndef HAVE_STPCPY
|
||||
static char *
|
||||
stpcpy (char *a,const char *b)
|
||||
{
|
||||
|
@ -165,6 +165,7 @@ stpcpy (char *a,const char *b)
|
|||
|
||||
return (char*)a;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* If a callback has been registerd, call it for the event of type
|
||||
|
@ -474,7 +475,7 @@ insert_body (rfc822parse_t msg, const unsigned char *line, size_t length)
|
|||
msg->boundary = NULL; /* No current boundary anymore. */
|
||||
set_current_part_to_parent (msg);
|
||||
|
||||
/* Fixme: The next should acctually be sent right before the
|
||||
/* Fixme: The next should actually be send right before the
|
||||
next boundary, so that we can mark the epilogue. */
|
||||
if (!rc)
|
||||
rc = do_callback (msg, RFC822PARSE_LEVEL_UP);
|
||||
|
@ -523,7 +524,8 @@ rfc822parse_finish (rfc822parse_t msg)
|
|||
* available.
|
||||
*
|
||||
* If VALUEOFF is not NULL it will receive the offset of the first non
|
||||
* space character in th value of the line.
|
||||
* space character in the value part of the line (i.e. after the first
|
||||
* colon).
|
||||
*/
|
||||
char *
|
||||
rfc822parse_get_field (rfc822parse_t msg, const char *name, int which,
|
||||
|
@ -758,7 +760,8 @@ parse_field (HDR_LINE hdr)
|
|||
static const char specials[] = "<>@.,;:\\[]\"()";
|
||||
static const char specials2[] = "<>@.,;:";
|
||||
static const char tspecials[] = "/?=<>@,;:\\[]\"()";
|
||||
static const char tspecials2[] = "/?=<>@.,;:";
|
||||
static const char tspecials2[] = "/?=<>@.,;:"; /* FIXME: really
|
||||
include '.'?*/
|
||||
static struct
|
||||
{
|
||||
const unsigned char *name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue