Commit Graph

31 Commits

Author SHA1 Message Date
Marcus Brinkmann
5a7fadc5aa 2002-10-12 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c (checkMessageSignature): Update call to
	gpgme_op_verify to use new arguments.
2002-10-12 14:32:01 +00:00
Werner Koch
f52d17f48f * gpgmeplug.c (nextCertificate): Sanity check for empty tmp_dn. 2002-09-20 11:47:55 +00:00
Steffen Hansen
a579b5fa35 Use gpgme_op_import_ext() instead of gpgme_op_import() 2002-08-20 23:37:43 +00:00
Steffen Hansen
6676c74b6a new cryptplug function importCertificateFromMem() 2002-07-31 12:37:34 +00:00
Werner Koch
992c88991d * gpgmeplug.c (nextCertificate): Actually free the entire array
and don't loop over tmp_dn and double free the first item.
Spotted by Bernhard Herzog.
2002-07-03 11:04:54 +00:00
Werner Koch
ca43df065f (xstrdup): Oops, obviously I calculated the length wrong when
coded this.  Tsss, wrote xstrdup some hundreds times but missed it
this time.  Thanks to Steffen Hansen for noticing it.
2002-07-01 13:09:18 +00:00
Werner Koch
3f7e65f9a9 * gpgmeplug.c (findCertificates): Reintroduced a free which must
have been removed after my last fix.  This avoids a memory leak
when a fingerprint was not found.  Removed the double loop
increment in the code to release the arrays.
(make_fingerprint): Removed superfluous check on retrun value of
xmalloc.
(safe_free): Removed.  Changed all callers to use a regular free
and at appropriate palces set the free pointer to NULL.  That
safe_free stuff seems to have been copied verbatim from some
Mutt example code I posted.
(storeNewCharPtr): Use xmalloc instead of an unchecked
malloc. Removed superfluous string termination.
(parseAddress): Use xmalloc instead of an unchecked malloc.
(nextAddress): Ditto.
* gpgmeplug.c:  Moved a few helper functions more to the top.
Fixed comment syntax.  Merged a copyright notice somewhere in the
middle of the file with the one at the top.
2002-07-01 13:01:51 +00:00
Werner Koch
d73a0f3c41 * gpgmeplug.c (findCertificates): Reintroduced a free which must
have been removed after my last fix.  This avoids a memory leak
when a fingerprint was not found.  Removed the double loop
increment in the code to release the arrays.
2002-07-01 11:36:48 +00:00
Werner Koch
ee970fa57d * gpgmeplug.c (xmalloc): New.
(safe_malloc): Removed this macro and replaced it at all places
without return values checks by xmalloc.
(xstrdup): New. Replaces funny named macro with different
semantics.  Changed all callers to the new semantic.
(findCertificates): Don't free duplicate free the FPR array
values.  Removed the unneeded initialization.  Replaces the
gcc-ish use dynamic allocation of automatic variables by repalce
maxCerts with a macro MAXCERTS.  Made some comments Real C (tm).
(startListCertificates): Removed uneeded cast from xmalloc.
2002-06-28 18:30:23 +00:00
Bernhard Reiter
e866179ce6 * gpgmeplug.c: new macro days_to_seconds().
this also fixes the dividing factor.
	(signatureCertificateDaysLeftToExpiry)
        (preceiverCertificateDaysLeftToExpiry): using the new macro

	(caCertificateDaysLeftToExpiry)
	(rootCertificateDaysLeftToExpiry): using new macro in deactivated code.
2002-06-28 14:51:12 +00:00
Steffen Hansen
2ea796a1a0 use gpgme_op_keylist_ext_start 2002-06-27 16:26:15 +00:00
Steffen Hansen
bb19f16ec4 handle truncated data 2002-06-27 13:15:02 +00:00
Steffen Hansen
3debbf008e importCertificate( const char* fpr ) 2002-06-25 17:42:21 +00:00
Werner Koch
5e13668340 * gpgmeplug.c (reorder_dn): Added missing stdpart list terminator.
BTW, why did you change the sequence of the parts.  According to the
specs there is no standard but our implementation has to make sure
that it uses the same sequence everywhere.  Adding the extra parts is
useless because they are not defined in rfc2253 and thus can't occur.
2002-06-20 16:48:37 +00:00
Steffen Hansen
068ef9f0f3 * cryptplug.h, gpgmeplug.c: Added certificate info listing functions.
Not yet complete.
Converted more C99 style comments to "classic" style.
2002-05-30 06:24:19 +00:00
Werner Koch
a5914229c4 * gpgmeplug.c: Converted it to real C; i.e. use standard comments -
we are doing ISO C 90.  Transalted a few German remarks and
commented on some things.
2002-03-23 11:35:31 +00:00
Steffen Hansen
af75bafc1b A little better address-parsing. Not real rfc822 yet, but at least it fetches
the address between < and > now if they are present.
2002-03-08 00:51:25 +00:00
Steffen Hansen
abd3200211 encryptMessage() now accepts a comma separated list of addressees 2002-03-07 14:10:07 +00:00
Werner Koch
b1970a759e * gpgmeplug.c (signMessage): Fixed offbyone. Don't include the
EOS character into the signature.
(checkMessageSignature): Ditto.
2002-03-06 17:23:17 +00:00
Matthias Kalle Dalheimer
8b21fdb6b8 Support for checking whether the signer's email address is contained in
his certificate.
2002-02-28 12:09:45 +00:00
Matthias Kalle Dalheimer
cb18fe8dd6 *** empty log message *** 2002-02-28 09:16:25 +00:00
Marcus Brinkmann
85c7100872 2002-02-27 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c (signMessage): Fix code syntax.
2002-02-26 23:19:19 +00:00
Marcus Brinkmann
f40bc63ac9 2002-02-01 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (EXTRA_gpgme_openpgp_la_SOURCES): New variable.
	(EXTRA_gpgme_smime_la_SOURCES): Likewise.

	* gpgmeplug.c (passphrase_cb): Fix type of third argument.
2002-02-01 20:28:35 +00:00
Marcus Brinkmann
f9dbfb9069 2002-01-16 Marcus Brinkmann <marcus@g10code.de>
* gpgme-openpgp.c: New file.
	* Makefile.am (gpgme_openpgp_la_SOURCES): Replace gpgmeplug.c with
	gpgme-openpgp.c.
2002-01-16 17:48:23 +00:00
Marcus Brinkmann
af5bfdd49e 2002-01-15 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c: Renamed to ...
	* gpgme-openpgp.c: ... this.  New file.
	* gpgsmplug.c: Renamed to ...
	* gpgme-smime.c: ... this.  new file.
	* Makefile.am: Rewritten to use libtool's module functionality.
2002-01-15 19:53:55 +00:00
Marcus Brinkmann
fe22c97e8d 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (lib_LTLIBRARIES): Rename to ...
	(noinst_LTLIBRARIES): ... this target.
2001-12-19 01:09:19 +00:00
Marcus Brinkmann
c298758eff 2001-12-19 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (libgpgmeplug_la_SOURCES): Remove gpgme.h.
	(libgpgsmplug_la_SOURCES): Likewise.
2001-12-19 00:28:12 +00:00
Marcus Brinkmann
e0da4fbd31 2001-11-29 Marcus Brinkmann <marcus@g10code.de>
* gpgmeplug.c (checkMessageSignature): Add call to gpgme_set_protocol.
2001-12-05 13:21:04 +00:00
Marcus Brinkmann
46bb2a4470 2001-11-24 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (libgpgsmplug_la_SOURCES): Fix source file.
2001-11-24 17:11:15 +00:00
Marcus Brinkmann
8993173dfb 2001-11-22 Marcus Brinkmann <marcus@g10code.de>
* gpgme.h (gpgme_set_protocol): New prototype.

2001-11-22  Marcus Brinkmann  <marcus@g10code.de>

	* Makefile.am (libgpgsmplug_la_LIBADD): New variable.
	(libgpgsmplug_la_LDFLAGS): Likewise.
	(libgpgsmplug_la_SOURCES): Likewise.
	(lib_LTLIBRARIES): Add libgpgsmplug.la.
	(INCLUDES): Include the local gpgme.h.

	* gpgmeplug.c (signMessage): Set protocol.
	(GPGMEPLUG_PROTOCOL) [!GPGMEPLUG_PROTOCOL]: Set
	GPGMEPLUG_PROTOCOL.
	* gpgsmplug.c: New file.
2001-11-22 18:48:53 +00:00
Marcus Brinkmann
42bdc1177d . 2001-11-21 21:09:50 +00:00