Karl-Heinz Zimmer
59c6205c78
make sure key used for signing _can_ sign
2002-07-02 16:32:29 +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
Steffen Hansen
7a826e3f35
Fixed memory corruption bug
2002-07-01 12:52:29 +00:00
Karl-Heinz Zimmer
a4b45557ea
avoid another memory leak in checkMessageSignature()
2002-07-01 12:08:24 +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
Karl-Heinz Zimmer
0fff553077
replace many comment lines by just one single comment
2002-06-28 19:50:31 +00:00
Karl-Heinz Zimmer
68f5d46094
Make it compile. :-(
2002-06-28 19:40:13 +00:00
Karl-Heinz Zimmer
054b78bdc0
Removed silly "free( dn )" statement forgotten during my last changes in findCertificates().
2002-06-28 19:37:06 +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
Karl-Heinz Zimmer
4114f4400d
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
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
Karl-Heinz Zimmer
095eef1792
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
71266fd6ea
Bugfix: enable function receiverCertificateDaysLeftToExpiry().
2002-06-26 15:16:32 +00:00
Karl-Heinz Zimmer
73f47e40b1
Make the signatureCertificateDaysLeftToExpiry() work as expected.
2002-06-26 08:04:43 +00:00
Karl-Heinz Zimmer
f97a834df6
IMPORTANT BUGFIX: Avoid random crashes in findCertificates. (This also fixes bug #1088.)
2002-06-26 04:44:58 +00:00
Karl-Heinz Zimmer
0a4a00821d
Oh pazzo mio! I forgot to *use* the nice dn string actually.
2002-06-26 00:05:30 +00:00
Steffen Hansen
4783cc23da
cert export/import bugfix
2002-06-25 20:24:29 +00:00
Steffen Hansen
3debbf008e
importCertificate( const char* fpr )
2002-06-25 17:42:21 +00:00
Karl-Heinz Zimmer
da40b7130f
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
969ceb2e6e
Disable debug output
2002-06-24 21:01:18 +00:00
Karl-Heinz Zimmer
b24b335b3b
Use fine DN parts reordering from within findCertificates() as well.
2002-06-24 20:25:19 +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
Karl-Heinz Zimmer
af2050538e
added some entries to DN normalization function
2002-06-20 05:05:43 +00:00
Steffen Hansen
7a0eb84f80
Show DN part names (CN=blah,O=blah...)
2002-06-20 00:44:00 +00:00
Karl-Heinz Zimmer
c445a85ff2
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
6798c68f2f
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
1bd00d0a18
bugfix + change to the nextCertificate() function prototype
2002-06-13 01:56:31 +00:00
Karl-Heinz Zimmer
e7dc765826
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
8ac95a9772
support for listing of external certs (untested)
2002-06-10 18:37:11 +00:00
Steffen Hansen
15188d9a79
reorder issuer DN also
2002-06-10 17:53:04 +00:00
Steffen Hansen
2879352eb5
typecast to make khz happy
2002-06-10 16:36:38 +00:00
Steffen Hansen
7b8ab474d3
more cert. info features
2002-06-10 11:24:39 +00:00
Karl-Heinz Zimmer
1ab6177e27
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
0848c32e0f
more cert info
2002-05-31 15:34:39 +00:00
Karl-Heinz Zimmer
3fa6cef5ca
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
e74de5d91a
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
5afd7bbcc0
more error handling
2002-05-31 09:28:58 +00:00
Steffen Hansen
fda851bfd9
small fix
2002-05-30 17:19:11 +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
Karl-Heinz Zimmer
d27e6506b1
revoce the previous commit, this was done erroneously
2002-05-08 12:14:13 +00:00
Karl-Heinz Zimmer
ff28fd3b54
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
00567dc8e3
Bugfix don't use binary signatures for OpenPGP
2002-05-07 10:40:48 +00:00
Karl-Heinz Zimmer
996d48a95e
allow checking of Opaque Signed message data
2002-04-27 05:32:39 +00:00
Matthias Kalle Dalheimer
2ee47693c0
More fixes for certificate generation
2002-04-18 19:26:03 +00:00
Matthias Kalle Dalheimer
9da6baf11f
Additional parameter for returning the cert length
2002-04-18 07:38:15 +00:00
Karl-Heinz Zimmer
76cc7612bd
report both the error-Id and the error-text to the calling program when signing or encrypting of mails could not be done
2002-04-17 15:00:53 +00:00
Matthias Kalle Dalheimer
0fc18236a2
Implemented requesting certs
2002-04-17 14:16:53 +00:00