aboutsummaryrefslogtreecommitdiffstats
path: root/gpgmeplug/gpgmeplug.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-07-02make sure key used for signing _can_ signdd9jn_pre_test_20020702Karl-Heinz Zimmer1-12/+21
2002-07-01(xstrdup): Oops, obviously I calculated the length wrong whenWerner Koch1-1/+1
coded this. Tsss, wrote xstrdup some hundreds times but missed it this time. Thanks to Steffen Hansen for noticing it.
2002-07-01* gpgmeplug.c (findCertificates): Reintroduced a free which mustWerner Koch1-112/+87
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-01Fixed memory corruption bugSteffen Hansen1-6/+10
2002-07-01avoid another memory leak in checkMessageSignature()Karl-Heinz Zimmer1-9/+4
2002-07-01* gpgmeplug.c (findCertificates): Reintroduced a free which mustWerner Koch1-2/+2
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-06-28replace many comment lines by just one single commentKarl-Heinz Zimmer1-5/+5
2002-06-28Make it compile. :-(Karl-Heinz Zimmer1-4/+4
2002-06-28Removed silly "free( dn )" statement forgotten during my last changes in ↵Karl-Heinz Zimmer1-2/+1
findCertificates().
2002-06-28* gpgmeplug.c (xmalloc): New.Werner Koch1-29/+51
(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 * gpgmeplug.c: new macro days_to_seconds().Bernhard Reiter1-12/+7
this also fixes the dividing factor. (signatureCertificateDaysLeftToExpiry) (preceiverCertificateDaysLeftToExpiry): using the new macro (caCertificateDaysLeftToExpiry) (rootCertificateDaysLeftToExpiry): using new macro in deactivated code.
2002-06-28internal AEgypten bugfix #1131: get full list of emails stored in ↵Karl-Heinz Zimmer1-249/+290
certificated used for signing a received message
2002-06-27use gpgme_op_keylist_ext_startSteffen Hansen1-2/+3
2002-06-27handle truncated dataSteffen Hansen1-2/+8
2002-06-27Missing implementation bug fixed: Return both error id and error plain text ↵Karl-Heinz Zimmer1-2/+16
from decryptMessage().
2002-06-26Bugfix: enable function receiverCertificateDaysLeftToExpiry().Karl-Heinz Zimmer1-2/+34
2002-06-26Make the signatureCertificateDaysLeftToExpiry() work as expected.Karl-Heinz Zimmer1-4/+72
2002-06-26IMPORTANT BUGFIX: Avoid random crashes in findCertificates. (This also ↵Karl-Heinz Zimmer1-62/+97
fixes bug #1088.)
2002-06-26Oh pazzo mio! I forgot to *use* the nice dn string actually.Karl-Heinz Zimmer1-6/+39
2002-06-25cert export/import bugfixSteffen Hansen1-10/+8
2002-06-25importCertificate( const char* fpr )Steffen Hansen1-9/+102
2002-06-25Have additional secretOnly parameter at the findCertificates() function to ↵Karl-Heinz Zimmer1-3/+4
allow for searching only secret keys.
2002-06-24Disable debug outputKarl-Heinz Zimmer1-2/+2
2002-06-24Use fine DN parts reordering from within findCertificates() as well.Karl-Heinz Zimmer1-52/+93
2002-06-20* gpgmeplug.c (reorder_dn): Added missing stdpart list terminator.Werner Koch1-1/+2
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-20added some entries to DN normalization functionKarl-Heinz Zimmer1-0/+11
2002-06-20Show DN part names (CN=blah,O=blah...)Steffen Hansen1-0/+4
2002-06-19Bugfix #949: (a) call gpgme_check_version(NULL) during initialization and ↵Karl-Heinz Zimmer1-2/+6
(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-19Use gpgme_get_sig_ulong_attr(.., GPGME_ATTR_SIG_SUMMARY ) function to return ↵Karl-Heinz Zimmer1-0/+24
extended signature status information from the CryptPlug to the calling process after trying to verify a signature.
2002-06-13bugfix + change to the nextCertificate() function prototypeSteffen Hansen1-4/+12
2002-06-12Add Plugin configuration option to allow for sending of *opaque* signed ↵Karl-Heinz Zimmer1-49/+140
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-10support for listing of external certs (untested)Steffen Hansen1-1/+3
2002-06-10reorder issuer DN alsoSteffen Hansen1-2/+14
2002-06-10typecast to make khz happySteffen Hansen1-1/+1
2002-06-10more cert. info featuresSteffen Hansen1-8/+82
2002-05-31more cert infoSteffen Hansen1-2/+337
2002-05-31Bugfix: use fingerprint as found in "fpr" only if no key was found by ↵Karl-Heinz Zimmer1-12/+3
gpgme_get_sig_key()
2002-05-31Matze's patch for showing colored bars at S/MIME messages as well as at ↵Karl-Heinz Zimmer1-378/+83
OpenPGP messages.
2002-05-31more error handlingKarl-Heinz Zimmer1-21/+111
2002-05-30small fixSteffen Hansen1-23/+7
2002-05-30* cryptplug.h, gpgmeplug.c: Added certificate info listing functions.Steffen Hansen1-4/+326
Not yet complete. Converted more C99 style comments to "classic" style.
2002-05-08revoce the previous commit, this was done erroneouslyKarl-Heinz Zimmer1-0/+4
2002-05-08Include the protocol parameter of multipart/.. content-type messages into ↵Karl-Heinz Zimmer1-5/+25
double quotes to fullify requirements of the german government (see BSI document Technische Grundlagen - Tailoring MTTv2, page 60)
2002-04-27allow checking of Opaque Signed message dataKarl-Heinz Zimmer1-4/+37
2002-04-18More fixes for certificate generationMatthias Kalle Dalheimer1-2/+7
2002-04-18Additional parameter for returning the cert lengthMatthias Kalle Dalheimer1-9/+25
2002-04-17report both the error-Id and the error-text to the calling program when ↵Karl-Heinz Zimmer1-9/+29
signing or encrypting of mails could not be done
2002-04-17Implemented requesting certsMatthias Kalle Dalheimer1-3/+18
2002-04-02now using gpgme_recipients_add_name instead of ↵Karl-Heinz Zimmer1-7/+4
gpgme_recipients_add_name_with_validity, see Werner's comment to bug #950 as of Fri, Mar 22 2002 17.15.26
2002-03-23* gpgmeplug.c: Converted it to real C; i.e. use standard comments -Werner Koch1-44/+58
we are doing ISO C 90. Transalted a few German remarks and commented on some things.