Commit Graph

11 Commits

Author SHA1 Message Date
5dfac3bcc1 Default to iso-8859-1 as the user's charset here if it is undefined. This
2001-03-24  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c (openpgp_verify): Default to iso-8859-1 as the
	user's charset here if it is undefined. This is a better choice
	than us-ascii.

svn path=/trunk/; revision=8921
2001-03-25 00:28:29 +00:00
4b098b1a42 New function to force the removal of a given password.
2001-02-25  Jeffrey Stedfast  <fejj@ximian.com>

	* session.c (mail_session_forget_password): New function to force
	the removal of a given password.

	* openpgp-utils.c (openpgp_decrypt): On failure, forget the
	passphrase.
	(openpgp_encrypt): Here too. (cleaned this up a bit too)
	(openpgp_clearsign): And here.
	(openpgp_sign): Again...

svn path=/trunk/; revision=8390
2001-02-26 01:39:11 +00:00
e939da9df4 Fixed memory corruption bug.
2001-02-22  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c (openpgp_verify): Fixed memory corruption bug.

	* mail-format.c (try_inline_pgp_sig): Check to make sure the
	validity isn't NULL.
	(handle_multipart_signed): Check for NULL validities.

2001-02-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-tools.c (mail_tool_uri_to_folder): Protect against NULL
	uri's.

	* mail-vtrash.c: Do mutex locking on the global hash table - this
	should clear up some segfaults ;-)

	* mail-config-druid.c (druid_finish): Set the 'enabled' member of
	the source to TRUE if the URL exists else set to FALSE.
	(incoming_type_changed): If the provider chosen is "None" then
	gray-out the auto-check widgets and the check-settings, otherwise
	sensitize them.

	* mail-account-editor.c (construct): Added a few more settings.
	(apply_changes): Save the new settings.

	* mail-config.c (service_copy): Updated.
	(config_read): Read in whether or not the account is enabled.
	(mail_config_write): Save if the account is enabled or not.

svn path=/trunk/; revision=8349
2001-02-22 21:40:26 +00:00
8738bf7aff Changed to use PgpValidity.
2001-02-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-crypto.c (pgp_mime_part_verify): Changed to use
	PgpValidity.

	* openpgp-utils.c (openpgp_verify): Return a PgpValidity and set
	the description as UTF-8 for later use in mail-format.c when
	writing to GtkHTML.

	* mail-format.c (try_inline_pgp_sig): Updated to use the new
	PgpValidity code.
	(handle_multipart_signed): Updated.

svn path=/trunk/; revision=8320
2001-02-21 17:24:13 +00:00
294158b26d reverse the order of some command-line flags for verify
svn path=/trunk/; revision=8248
2001-02-16 02:49:22 +00:00
29a1d573b7 Add the --no-tty flag.
2001-02-14  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c (openpgp_verify): Add the --no-tty flag.

svn path=/trunk/; revision=8239
2001-02-15 00:27:15 +00:00
62a7c2c370 A few minor tweaks.
2001-01-23  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c:
	* mail-crypto.c: A few minor tweaks.

svn path=/trunk/; revision=7755
2001-01-23 21:14:47 +00:00
c223f52d1d Initialize OpenPGP.
2001-01-21  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (owner_set_cb): Initialize OpenPGP.

	* openpgp-utils.c (openpgp_init): No longer takes a passphrase
	callback, we'll just use the mail-session one. Makes life simpler.
	(pgp_get_passphrase): Use mail_session_request_dialog().

svn path=/trunk/; revision=7694
2001-01-22 04:11:14 +00:00
cc09bb6056 Changed the word entry to enter, which is the correct word to use.
2001-01-17  Martin Norbäck  <d95mback@dtek.chalmers.se>

	* openpgp-utils.c (pgp_get_passphrase): Changed the word entry
	to enter, which is the correct word to use.

svn path=/trunk/; revision=7569
2001-01-17 09:52:50 +00:00
667ee75427 Fix a string causing translation problems. Bug #1147.
2001-01-16  Jason Leach  <jasonleach@usa.net>

	* openpgp-utils.c (pgp_get_passphrase): Fix a string causing
	  translation problems.  Bug #1147.

svn path=/trunk/; revision=7534
2001-01-16 14:57:18 +00:00
8265e5d841 Updated. (decode_pgp): Get rid of #ifdef PGP_PROGRAM's and handle
2001-01-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-format.c: Updated.
	(decode_pgp): Get rid of #ifdef PGP_PROGRAM's and handle
	appropriately.
	(handle_multipart_signed): Same.
	(handle_multipart_encrypted): Same.

	* Makefile.am: Added openpgp-utils.[c,h] to the build.

	* openpgp-utils.c: New source file containing all of the pgp
	interface code.

	* mail-crypto.c: Removed all of the openpgp funtions as they are
	being moved to a new file.
	(mail_crypto_is_rfc2015_signed): Renamed.
	(mail_crypto_is_rfc2015_encrypted): Renamed.

svn path=/trunk/; revision=7320
2001-01-09 18:27:59 +00:00