Karl-Heinz Zimmer
130f0a1df7
Adding support for email addresses includes in '<' and '>'.
2002-10-31 16:30:45 +00:00
Karl-Heinz Zimmer
bad2b24ce8
Add error checking for isEmailInCertificate being called with invalid fingerprint parameter.
2002-10-31 14:20:47 +00:00
Karl-Heinz Zimmer
a23b86ed54
Add support for certificates having the e-mail address stored in GPGME_ATTR_USERID instead of GPGME_ATTR_EMAIL.
2002-10-31 13:59:38 +00:00
Karl-Heinz Zimmer
9e49f66d1c
Implementing the 1st of missing features reported by Ingo: isEmailInCertificate()
2002-10-31 13:14:41 +00:00
Marcus Brinkmann
58fda3df4f
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
Karl-Heinz Zimmer
fb19756ec6
Applying Ingo's patch: Makes signatureCertificateDaysLeftToExpiry() and receiverCertificateDaysLeftToExpiry() handle the case that a certificate _never_ expires correctly.
2002-09-29 21:14:16 +00:00
Werner Koch
50d2a3abfb
* gpgmeplug.c (nextCertificate): Sanity check for empty tmp_dn.
2002-09-20 11:47:55 +00:00
Karl-Heinz Zimmer
db9f323351
Bugfix #1276 (equals KDE bug #43868 ). Make sure to update kde/kdenetwork/libkdenetwork and kde/kdenetwork/kmail.
2002-09-12 11:02:02 +00:00
Karl-Heinz Zimmer
39bf6acbcc
Bugfix: The value text of protocol parameter of OpenPGP's multipart/signed Content-Type header must be enclosed in double quotes. Bugfix was provided by Marc Mutz solving problems with pine.
2002-09-06 11:52:05 +00:00
Karl-Heinz Zimmer
2645bb081d
AEgypten bugfix #1220 : make sure that (a) negative numbers of days-left-to-expire-of-certificate are reported correctly by using an int instead of a time_t and (b) return the special value CRYPTPLUG_CERT_DOES_NEVER_EXPIRE to indicate that no expire date is stored in this certificate
2002-09-03 16:21:34 +00:00
Steffen Hansen
284c894006
Use gpgme_op_import_ext() instead of gpgme_op_import()
2002-08-20 23:37:43 +00:00
Steffen Hansen
6e3c1e6a1c
new cryptplug function importCertificateFromMem()
2002-07-31 12:37:34 +00:00
Karl-Heinz Zimmer
6c8fcaba7f
CRASH prevention fix: Memory was overwritten if there were more than 1 email address in a signature certificate found in checkMessageSignature() function.
2002-07-04 00:02:19 +00:00
Karl-Heinz Zimmer
3e95a6c550
fixing bug #1154
2002-07-03 15:43:41 +00:00
Werner Koch
35787b08c2
* 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
Karl-Heinz Zimmer
bd50e28df5
make sure key used for signing _can_ sign
2002-07-02 16:32:29 +00:00
Werner Koch
966b4bfb90
(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
3984ea8ba7
* 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
Steffen Hansen
2aecadadb2
Fixed memory corruption bug
2002-07-01 12:52:29 +00:00
Karl-Heinz Zimmer
4502a57766
avoid another memory leak in checkMessageSignature()
2002-07-01 12:08:24 +00:00
Werner Koch
11888ab480
* 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
Karl-Heinz Zimmer
838faa02f8
replace many comment lines by just one single comment
2002-06-28 19:50:31 +00:00
Karl-Heinz Zimmer
0295e2a84d
Make it compile. :-(
2002-06-28 19:40:13 +00:00
Karl-Heinz Zimmer
0ce8512aec
Removed silly "free( dn )" statement forgotten during my last changes in findCertificates().
2002-06-28 19:37:06 +00:00
Werner Koch
21879b861a
* 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
697d84d601
* 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
Karl-Heinz Zimmer
dd712a84bb
internal AEgypten bugfix #1131 : get full list of emails stored in certificated used for signing a received message
2002-06-28 14:12:18 +00:00
Steffen Hansen
1f829e3dd0
use gpgme_op_keylist_ext_start
2002-06-27 16:26:15 +00:00
Steffen Hansen
eb4c2774b9
handle truncated data
2002-06-27 13:15:02 +00:00
Karl-Heinz Zimmer
442edc6fcb
Missing implementation bug fixed: Return both error id and error plain text from decryptMessage().
2002-06-27 08:21:58 +00:00
Karl-Heinz Zimmer
523e652a80
Bugfix: enable function receiverCertificateDaysLeftToExpiry().
2002-06-26 15:16:32 +00:00
Karl-Heinz Zimmer
054c204bef
Make the signatureCertificateDaysLeftToExpiry() work as expected.
2002-06-26 08:04:43 +00:00
Karl-Heinz Zimmer
787422a104
IMPORTANT BUGFIX: Avoid random crashes in findCertificates. (This also fixes bug #1088.)
2002-06-26 04:44:58 +00:00
Karl-Heinz Zimmer
b9db0fd302
Oh pazzo mio! I forgot to *use* the nice dn string actually.
2002-06-26 00:05:30 +00:00
Steffen Hansen
dc24ce6798
cert export/import bugfix
2002-06-25 20:24:29 +00:00
Steffen Hansen
d55f155fa1
importCertificate( const char* fpr )
2002-06-25 17:42:21 +00:00
Karl-Heinz Zimmer
13a3516233
Have additional secretOnly parameter at the findCertificates() function to allow for searching only secret keys.
2002-06-25 15:05:59 +00:00
Karl-Heinz Zimmer
1ee485d442
Disable debug output
2002-06-24 21:01:18 +00:00
Karl-Heinz Zimmer
c33eca3223
Use fine DN parts reordering from within findCertificates() as well.
2002-06-24 20:25:19 +00:00
Werner Koch
b158dc6f60
* 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
Karl-Heinz Zimmer
6c18a3e29d
added some entries to DN normalization function
2002-06-20 05:05:43 +00:00
Steffen Hansen
77d82f41c0
Show DN part names (CN=blah,O=blah...)
2002-06-20 00:44:00 +00:00
Karl-Heinz Zimmer
5f34812683
Bugfix #949 : (a) call gpgme_check_version(NULL) during initialization and (b) provide additional function libVersion(void) to retrieve the library version used - this function has been added to the CryptPlug API as new *MUST* function for all implementations.
2002-06-19 12:56:43 +00:00
Karl-Heinz Zimmer
90ed0b944e
Use gpgme_get_sig_ulong_attr(.., GPGME_ATTR_SIG_SUMMARY ) function to return extended signature status information from the CryptPlug to the calling process after trying to verify a signature.
2002-06-19 10:22:49 +00:00
Steffen Hansen
68ffb35d95
bugfix + change to the nextCertificate() function prototype
2002-06-13 01:56:31 +00:00
Karl-Heinz Zimmer
b1af832364
Add Plugin configuration option to allow for sending of *opaque* signed messages. Unfortunately this is necessary for communication with some MS Outlook clients, e.g. TrustedMime is not able to understand Multipart/Signed messages. <sigh> NOTE: This breaks compabilitity with kdenetwork, so make sure to update the KDE sources as well...
2002-06-12 11:05:42 +00:00
Steffen Hansen
d5010c74d9
support for listing of external certs (untested)
2002-06-10 18:37:11 +00:00
Steffen Hansen
eb2b04e520
reorder issuer DN also
2002-06-10 17:53:04 +00:00
Steffen Hansen
045833e3a1
typecast to make khz happy
2002-06-10 16:36:38 +00:00
Steffen Hansen
b13ccfe274
more cert. info features
2002-06-10 11:24:39 +00:00