Commit Graph

13 Commits

Author SHA1 Message Date
a036c22b74 fix smime the same way...
svn path=/trunk/; revision=12520
2001-08-29 21:29:52 +00:00
e86a28e484 Numerous fixes to get it to compile.
2001-05-31  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c: Numerous fixes to get it to compile.

svn path=/trunk/; revision=10073
2001-05-31 22:30:06 +00:00
fb099f5619 New virtual class for manipulating cryptographic message syntax messages
2001-05-31  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-cms-context.[c,h]: New virtual class for manipulating
	cryptographic message syntax messages (like S/MIME).

	* camel-smime-context.[c,h]: Modified to inherit from the
	CamelCMSContext class rather than the CamelCipherContext class.

	* camel-smime.[c,h]: Removed - just use camel-smime-context
	directly.

	* camel-smime-utils.[c,h]: New source files. Moved the 2 useful
	functions from camel-smime.[c,h] into here.

svn path=/trunk/; revision=10065
2001-05-31 20:15:35 +00:00
c43cf87a0e Oops, I spelled the get-default-db function name wrong.
2001-05-24  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c (camel_smime_context_new): Oops, I spelled
	the get-default-db function name wrong.

svn path=/trunk/; revision=9980
2001-05-25 01:12:26 +00:00
ae9d99bda3 We don't need to be passed the certdb path anymore.
2001-05-16  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c (camel_smime_context_new): We don't need
	to be passed the certdb path anymore.

svn path=/trunk/; revision=9855
2001-05-16 21:23:20 +00:00
4e4a41d8ae Don't close or free (it wasn't allocated) the certdb.
2001-05-15  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c (camel_smime_context_finalise): Don't
	close or free (it wasn't allocated) the certdb.
	(camel_smime_context_new): If we get a NULL certdb handle, then
	don't bother trying to create a new certdb handle since NSS_Init*
	should have done that.

svn path=/trunk/; revision=9830
2001-05-15 20:14:00 +00:00
4f93316f79 Lots of fixes to get this to compile.
2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c: Lots of fixes to get this to compile.

svn path=/trunk/; revision=9806
2001-05-14 22:38:28 +00:00
2798919c3c Lots of fixes to get this to almost compile. Still struggling with the
2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c: Lots of fixes to get this to almost
	compile. Still struggling with the fact that CERTCertDBHandle is
	an "incomplete type". *sigh*.

	* camel-smime.c (camel_smime_part_verify): Updated to pass in a
	hash argument to camel_smime_verify().

	* camel-pgp-mime.c (camel_pgp_mime_part_verify): Update according
	to the changes in the context API.

	* camel-pgp-context.c (pgp_verify): Updated to take a
	CamelCipherHash argument.

	* camel-cipher-context.c (camel_cipher_verify): Now takes a hash
	argument since the S/MIME code needs this.

svn path=/trunk/; revision=9804
2001-05-14 22:25:02 +00:00
9d1641a573 Add camel-smime-context.[c,h] and camel-smime.[c,h] to the build.
2001-05-14  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Add camel-smime-context.[c,h] and camel-smime.[c,h]
	to the build.

	* camel-smime.[c,h]: New source files for manipulating S/MIME
	message parts.

svn path=/trunk/; revision=9799
2001-05-14 21:14:34 +00:00
63e96e1002 Redo this a lot so that instead of having a class full of callbacks, we
* camel-session.c: Redo this a lot so that instead of having a
	class full of callbacks, we have a subclassable class. Also,
	replace the increasingly horrifying
	camel_session_query_authenticator with three new routines,
	camel_session_get_password, camel_session_forget_password, and
	camel_session_alert_user.

	* camel-pgp-context.c:
	* camel-pkcs7-context.c:
	* camel-smime-context.c:
	* providers/imap/camel-imap-store.c:
	* providers/pop3/camel-pop3-store.c:
	* providers/smtp/camel-smtp-transport.c:
	Use camel_session_get_password / camel_session_forget_password.

	* camel-tcp-stream-ssl.c (ssl_bad_cert): Use
	camel_session_alert_user.

svn path=/trunk/; revision=9617
2001-04-27 21:08:08 +00:00
7edad05212 #include "nss.h" rather than <nss.h> due to the non-mozilla nss.h file living in /usr/include
svn path=/trunk/; revision=9592
2001-04-26 20:09:28 +00:00
c467d07a94 Oops, don't use the return value of iconv() as a string length, it only
2001-04-22  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-pgp-context.c (pgp_verify): Oops, don't use the return
	value of iconv() as a string length, it only tells us the number
	of non-reversable character conversions. This fixes it so we
	actually see the gpg output in the message viewer.

svn path=/trunk/; revision=9495
2001-04-23 00:20:19 +00:00
986252ceaf Implemented using the secmime.h convenience functions. (smime_clearsign):
2001-04-20  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-smime-context.c (smime_sign): Implemented using the
	secmime.h convenience functions.
	(smime_clearsign): We just error our here, there is no clearsign
	for smime.
	(smime_verify): Copied code over from the pkcs7 verify - same
	state, ugly and unknown :-)
	(smime_encrypt): Implemented using the secmime.h convenience
	functions.
	(smime_decrypt): Same as the code in pkcs7-context.

svn path=/trunk/; revision=9480
2001-04-20 21:21:34 +00:00