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
Karl-Heinz Zimmer
a890d09be4
sync our cryptplug.h with the version in KDE/libkdenetwork/ that was corrected my Marc Mutz.
2002-06-01 15:35:07 +00:00
Steffen Hansen
addaec8ce0
more cert info
2002-05-31 15:34:39 +00:00
Karl-Heinz Zimmer
4f4591f014
Bugfix: use fingerprint as found in "fpr" only if no key was found by gpgme_get_sig_key()
2002-05-31 12:00:18 +00:00
Karl-Heinz Zimmer
4c4f889de1
Matze's patch for showing colored bars at S/MIME messages as well as at OpenPGP messages.
2002-05-31 11:08:54 +00:00
Karl-Heinz Zimmer
36dfd30eed
more error handling
2002-05-31 09:28:58 +00:00
Steffen Hansen
9bcde60810
small fix
2002-05-30 17:19:11 +00:00
Steffen Hansen
b63a3e5632
* 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
Karl-Heinz Zimmer
de87f2907e
revoce the previous commit, this was done erroneously
2002-05-08 12:14:13 +00:00
Karl-Heinz Zimmer
1d45e61d39
Include the protocol parameter of multipart/.. content-type messages into double quotes to fullify requirements of the german government (see BSI document Technische Grundlagen - Tailoring MTTv2, page 60)
2002-05-08 12:05:17 +00:00
Karl-Heinz Zimmer
482c30a8df
Bugfix don't use binary signatures for OpenPGP
2002-05-07 10:40:48 +00:00