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
Karl-Heinz Zimmer
a9a0c6df0e
allow checking of Opaque Signed message data
2002-04-27 05:32:39 +00:00
Matthias Kalle Dalheimer
203ccc0a3b
More fixes for certificate generation
2002-04-18 19:26:03 +00:00
Matthias Kalle Dalheimer
f430065c1d
Additional parameter for returning the cert length
2002-04-18 07:38:15 +00:00
Karl-Heinz Zimmer
54db30c3c7
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
4917d176bf
Implemented requesting certs
2002-04-17 14:16:53 +00:00
Karl-Heinz Zimmer
086ce275cf
[bug #997 ] changed 'micalg=pgp-sha1' into 'micalg=sha1' for S/MIME mails
2002-04-03 14:30:51 +00:00
Karl-Heinz Zimmer
b241b1dd99
now using gpgme_recipients_add_name instead of gpgme_recipients_add_name_with_validity, see Werner's comment to bug #950 as of Fri, Mar 22 2002 17.15.26
2002-04-02 11:52:55 +00:00
Werner Koch
343c075f3e
* 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
Karl-Heinz Zimmer
5e7eb29aec
bugfix on new binary-encrypting/signing code
2002-03-22 17:06:43 +00:00
Karl-Heinz Zimmer
b4a7e2b887
interface change: signMessage() and encryptMessage() now return an additional 'cipherLen' parameter to enable us to handle binary cipher data
2002-03-22 10:40:24 +00:00
Karl-Heinz Zimmer
b5bc40d9d7
changed code according to our hack before CeBIT, we are giving *binary* data to the decryptMessage() and to the checkMessageSignature() methode instead of passing base64 encoded data to them
2002-03-21 21:48:33 +00:00
Matthias Kalle Dalheimer
2c959fa5c1
More feature selectors
...
Plugin says which features it supports
2002-03-21 13:14:20 +00:00
Werner Koch
a89711b35d
removed all the .cvsignre files - they should be local
2002-03-10 18:41:02 +00:00
Karl-Heinz Zimmer
f154347fff
bugfix in findCertificates function
2002-03-09 16:46:36 +00:00
Karl-Heinz Zimmer
539840d772
Bugfix: forgot to initialize the list of certificates in findCertificates() before adding the found entries
2002-03-08 18:13:20 +00:00
Karl-Heinz Zimmer
bb1f4cde87
New feature: Ask user which certificate is to be taken when more than one found by the crypto plug-in for a single recipient. - NOTE: This code is not working correctly (yet) so we allways get some *all* keys that are stored by gpg instead of the right key information.
2002-03-08 15:44:09 +00:00
Steffen Hansen
1585b5266e
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
Matthias Kalle Dalheimer
eee3cb4578
Support for various warnings about expiring encryption certificates.
...
Support for checking encryption certificate paths.
Needs GPGME support.
2002-03-07 21:18:27 +00:00
Steffen Hansen
36bb3b61ee
encryptMessage() now accepts a comma separated list of addressees
2002-03-07 14:10:07 +00:00
Werner Koch
0e6eebe38d
* gpgmeplug.c (signMessage): Fixed offbyone. Don't include the
...
EOS character into the signature.
(checkMessageSignature): Ditto.
2002-03-06 17:23:17 +00:00
Karl-Heinz Zimmer
56d6e0e38e
Changed interface: additionally we now pass the following parameters into the checkMessageSignature function: bool signatureIsBinary - telling us whether the signature is armored ASCII or binary data, int signatureLen - holding the TRUE length of the signature if (and only if) this is binary data
2002-03-05 21:23:58 +00:00
Matthias Kalle Dalheimer
c76835983d
Support for warning when a CRL expires
2002-03-01 17:54:26 +00:00
Matthias Kalle Dalheimer
42f09583f1
Support for asking the for the PIN a certain number of times.
2002-03-01 16:55:50 +00:00
Matthias Kalle Dalheimer
0ba3682c28
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
28747db23d
*** empty log message ***
2002-02-28 09:16:25 +00:00
Matthias Kalle Dalheimer
2b1b87785c
Implemented warning when the certificates used for signing are about to
...
expire
2002-02-28 09:14:39 +00:00
Matthias Kalle Dalheimer
708790b7b9
Marked up where g10 needs to implement the selection of the signature algorithm
2002-02-28 07:49:13 +00:00
Matthias Kalle Dalheimer
f0d54d22da
select the signature algorithm - dummy in gpgme.c
2002-02-27 20:59:20 +00:00
Marcus Brinkmann
cd8b9caa00
2002-02-27 Marcus Brinkmann <marcus@g10code.de>
...
* gpgmeplug.c (signMessage): Fix code syntax.
2002-02-26 23:19:19 +00:00
Karl-Heinz Zimmer
1aa16bff05
now signMessage() calls the gpgme_set_include_certs() function before each call of gpgme_op_sign
2002-02-26 01:01:28 +00:00
Karl-Heinz Zimmer
88ece15589
fixed wrong GPGMEPLUG_SIGN_CTYPE_CODE parameter for S/MIME
2002-02-18 16:45:00 +00:00
Steffen Hansen
50e99ef86d
Removed temporary passphrase callback
2002-02-13 19:23:00 +00:00
Marcus Brinkmann
20b46ef55f
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
28fde2ec98
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
c7ef692809
Added copyright statement for 2002.
2002-01-15 19:55:56 +00:00
Marcus Brinkmann
72e8fd4088
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
Karl-Heinz Zimmer
ccfa129777
bug found: no more crashing when calling signing/encoding functions :-)
2002-01-15 08:03:26 +00:00
Karl-Heinz Zimmer
1a39b83af3
fixed bug in function "storeNewCharPtr()"
2002-01-14 20:33:50 +00:00
Karl-Heinz Zimmer
70604ccfe7
Added specification of strings and bool values for S/MIME signing and encrypting. (note: this new StructuringInfo feature is ignored by KMail at the moment, this is an urgent ToDo item since the KMail sources are _not_ able to use the cryptplug with the changes made today)
2001-12-24 00:26:52 +00:00
Karl-Heinz Zimmer
785a0d318f
finished interface of StructuringInfo struct and added implementation of setting it's parameters in our cryptplug signMessage and
...
encryptmessage functions (setting of parameters in gpgsmplug.c is still missing)
2001-12-24 00:09:24 +00:00
Karl-Heinz Zimmer
6239c26cfa
now including stdlib.h into the header file to avoid compile time warnings of unknown function free()
2001-12-23 22:47:40 +00:00
Karl-Heinz Zimmer
87e4dde1db
Adjust and complete the documentation of the new "StructuringInfo" struct and the corresponding free_StructuringInfo() function and - for plugin developers - the corresponding init_StructuringInfo() function
2001-12-23 22:37:51 +00:00
Marcus Brinkmann
03c9fa6b5a
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
49b7c5971c
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
Karl-Heinz Zimmer
b44a765370
corrected specification of Aegypten test key in encrypt() function
2001-12-18 21:11:03 +00:00
Karl-Heinz Zimmer
10919d63f7
added debug message to encrypt() function
2001-12-18 20:13:08 +00:00
Karl-Heinz Zimmer
98f8903e20
improce memory handling
2001-12-13 15:13:09 +00:00
Karl-Heinz Zimmer
370d4e0b55
Corrected (for a second time) code status error from previous wrong CVS comits
2001-12-06 17:19:07 +00:00
Karl-Heinz Zimmer
aa41d33661
Corrected code status error from previous wrong CVS comits
2001-12-06 16:59:09 +00:00
Marcus Brinkmann
68b8d3aa93
Add .cvsignore files. Suggested by Jan-Oliver Wagner <jan@intevation.de>.
2001-12-05 19:50:45 +00:00
Marcus Brinkmann
39db13330a
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
Karl-Heinz Zimmer
c0a30821b0
added error detection to signing and encrypting methodes: this has to be improved furtheron
2001-11-29 12:29:55 +00:00
Matthias Kalle Dalheimer
3bf0c5c687
Check for out-of-memory in signature verification
2001-11-26 16:43:00 +00:00
Karl-Heinz Zimmer
9cb0dacb7b
enabled fetching meta data after checking of signature(s)
2001-11-26 15:54:12 +00:00
Matthias Kalle Dalheimer
1523ae7f48
Filling the SignatureMetaData struct (the crucial code is #ifdef'd out for safety's sake)
...
Changes to SignatureMetaData
Added SignatureMetaDataExtendedInfo
2001-11-25 21:53:39 +00:00
Karl-Heinz Zimmer
0775304a91
changed specification of SignatureMetaData struct
2001-11-25 20:31:36 +00:00
Karl-Heinz Zimmer
2331d9df26
[Kalle] signature verification and decoding of encrypted mails
2001-11-25 15:23:21 +00:00
Karl-Heinz Zimmer
8c656febad
Now gpgmeplug.c can also create encrypted and signed+encrypted S/MIME mails.
2001-11-25 05:07:44 +00:00
Karl-Heinz Zimmer
a311c98821
adjusted 'encryptMessage' parameters: now also the addressee is given
2001-11-25 03:37:13 +00:00
Marcus Brinkmann
326728e59d
2001-11-24 Marcus Brinkmann <marcus@g10code.de>
...
* Makefile.am (libgpgsmplug_la_SOURCES): Fix source file.
2001-11-24 17:11:15 +00:00
Karl-Heinz Zimmer
9395aecc38
signing now returns only the SIGNATURE - not the original text - since building of the S/MIME object is done in the calling program (the MUA...)
2001-11-24 10:51:55 +00:00
Karl-Heinz Zimmer
2ed886f88b
signing of mail bodies is working now - buuuuut: I changed the behaviour of the 'signMessage()' function, it now returns *only* the signature part (with a trailing zero). This is neccessary to avoid confugion at the KMail side: otherwise KMail might try to convert the whole MIME block into quoted printable - of course this is only allowed for the body part but not for the signature part.
2001-11-23 02:08:53 +00:00
Marcus Brinkmann
20b4415d80
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
Karl-Heinz Zimmer
56c3ac2dce
removed stupid C bug (malloc of strlen(..) instead of 1+strlen)
2001-11-22 17:32:21 +00:00
Karl-Heinz Zimmer
1195ae3fc1
Now send the signature back to the calling function (instead of just printing it to stdout)
2001-11-22 09:36:53 +00:00
Karl-Heinz Zimmer
47ea703ef7
corrected includes
2001-11-21 23:34:51 +00:00
Karl-Heinz Zimmer
5b3b345cdc
create signature (and write it to stdout for testing)
2001-11-21 23:23:24 +00:00
Karl-Heinz Zimmer
72f6f8b764
change Makefile to create shared lib
2001-11-21 23:20:49 +00:00
Marcus Brinkmann
e690fff99d
.
2001-11-21 21:09:50 +00:00
Marcus Brinkmann
14e29ef7dc
2001-11-21 Marcus Brinkmann <marcus@g10code.de>
...
* gpgmeplug.c: Include config.h only if [HAVE_CONFIG_H]. Do not
include util.h.
(deinitialize): Use free, not _gpgme_free.
(setDirectoryServers): Use calloc, not xtrycalloc. Use free, not
_gpgme_free. Use malloc instead xtrymalloc.
(appendDirectoryServer): Use realloc, not xtryrealloc.
2001-11-21 21:08:02 +00:00
Karl-Heinz Zimmer
0a615fa887
finished implementation of DirectoryServices storing/retrieving
2001-11-21 16:57:54 +00:00
Karl-Heinz Zimmer
d01ab1b40d
(security checkin) currently working on signing messages
2001-11-21 14:18:52 +00:00
Karl-Heinz Zimmer
b875177bcf
configure struct updated according to modified cryptplug.h
2001-11-21 10:55:02 +00:00
Karl-Heinz Zimmer
6e3b28453f
GPGME Plug-In initial checkin. Saving/restoring of configuration is working.
2001-11-21 09:42:08 +00:00