/[pkg-mixmaster]/trunk/Mix/Src/pgpdata.c
ViewVC logotype

Log of /trunk/Mix/Src/pgpdata.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 710 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 21 00:47:21 2004 UTC (9 years, 4 months ago) by rabbi
File length: 36762 byte(s)
Diff to previous 647 , to selected 134
Updated copyright dates, doc issues, misc fixes.

Revision 647 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 25 23:34:13 2003 UTC (9 years, 7 months ago) by weasel
File length: 36741 byte(s)
Diff to previous 585 , to selected 134
Set keyword expansion for Id on all files that already have $Id$ tags.

Revision 585 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 19 00:51:41 2003 UTC (9 years, 8 months ago) by weaselp
File length: 36792 byte(s)
Diff to previous 581 , to selected 134
Fix a problem that was introduced when doing away the ifdef rsa bits:

one if the ifdefs was not an ifdef but an ifndef

Revision 581 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 24 20:39:26 2003 UTC (9 years, 9 months ago) by weaselp
File length: 36840 byte(s)
Diff to previous 505 , to selected 134
Do away with the conditional use of RSA, always using it.  Without RSA we
aren't much good anyway.

Revision 505 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 3 10:55:49 2003 UTC (10 years ago) by weaselp
File length: 36989 byte(s)
Diff to previous 478 , to selected 134
until we can handle the case where our pgp keys expire, don't create keys that expire

Revision 478 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 15 08:06:44 2003 UTC (10 years, 3 months ago) by weaselp
File length: 36858 byte(s)
Diff to previous 332 , to selected 134
Make sure DH/DSA param file is actually opened before writing to it.  Fixes a segfault in case it is not.

Revision 332 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 9 20:53:32 2002 UTC (10 years, 7 months ago) by weaselp
File length: 36725 byte(s)
Diff to previous 298 , to selected 134
Whitespace cleanup:
for i in *.c; do cp -a $i $i.orig; sed -e 's/^        /<TAB>/' $i.orig > $i; rm $i.orig; done
for i in *.c *.h; do cp -a $i $i.orig; sed -e 's/[ <TAB>]*$//' $i.orig > $i; rm $i.orig; done

Revision 298 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 2 07:54:12 2002 UTC (10 years, 7 months ago) by weaselp
File length: 36788 byte(s)
Diff to previous 295 , to selected 134
Only return latest pgp keys to remailer-key requests

Revision 295 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 1 08:23:20 2002 UTC (10 years, 7 months ago) by weaselp
File length: 36660 byte(s)
Diff to previous 285 , to selected 134
Write keyid, creation date, etc header along with armored keys to pgpkey.txt

Revision 285 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 26 22:28:25 2002 UTC (10 years, 7 months ago) by weaselp
File length: 36609 byte(s)
Diff to previous 284 , to selected 134
Make sure to always have the right one of begin private/public key

Revision 284 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 26 22:14:00 2002 UTC (10 years, 8 months ago) by weaselp
File length: 36539 byte(s)
Diff to previous 282 , to selected 134
Reverse that - I'll do it differently

Revision 282 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 26 22:04:58 2002 UTC (10 years, 8 months ago) by weaselp
File length: 36605 byte(s)
Diff to previous 262 , to selected 134
pass armortype to pgpdb_close - used when file needs to get armored

Revision 262 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 18 23:26:17 2002 UTC (10 years, 8 months ago) by rabbi
File length: 36537 byte(s)
Diff to previous 261 , to selected 134
Added closing comments for all #ifdef statements. All #endif's, as well as
nested braces, should be commented to reference their start.

We need to provide comments before every function as well.

Revision 261 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 18 06:44:40 2002 UTC (10 years, 8 months ago) by weaselp
File length: 36362 byte(s)
Diff to previous 259 , to selected 134
Update documentation on parameters for pgp_getkey()

Revision 259 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 18 05:55:10 2002 UTC (10 years, 8 months ago) by weaselp
File length: 36262 byte(s)
Diff to previous 255 , to selected 134
Use yyyy-mm-dd instead of yyyy/mm/dd similar to GnuPG

Revision 255 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 12 17:36:43 2002 UTC (10 years, 8 months ago) by disastry
File length: 36263 byte(s)
Diff to previous 254 , to selected 134
pgp_get_sig_subpacket() is used only in pgpdata.c, so make it static

Revision 254 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 12 17:26:00 2002 UTC (10 years, 8 months ago) by disastry
File length: 36256 byte(s)
Diff to previous 221 , to selected 134
check expiration and revocation of pgp keys, userids, subkeys

do not encrypt with expired or revoked keys, subkeys
do not sign with expired or revoked keys
do not decrypt with expired keys, subkeys after graceperiod

when encrypting use preferences from latest and/or primary userid

create new pgp keys if current are to expire in overlapperiod

Revision 221 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 6 22:45:06 2002 UTC (10 years, 8 months ago) by rabbi
File length: 29295 byte(s)
Diff to previous 212 , to selected 134
Standardized commenting conventions.

Revision 212 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 4 06:40:31 2002 UTC (10 years, 8 months ago) by disastry
File length: 29262 byte(s)
Diff to previous 205 , to selected 134
Use sane RSA exponet

Revision 205 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 29 08:50:00 2002 UTC (10 years, 8 months ago) by weaselp
File length: 29260 byte(s)
Diff to previous 185 , to selected 134
When creating new OpenPGP keys, also set an expiry date. Key lifetime
defaults to 8 months but can be overriden by the KEYLIFETIME configuration
option.

We currently do not store the self signature and the keybinding (which hold
the expiry information in DSA keys) in the secret keyring. This is
unfortunate because we use the current KEYLIFETIME when recreating them
should the public keyring need to be rewritten. The solution is to store
them in the secret keyring (like GnuPG does) and not recreate them later
if we already have them.

Revision 185 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 26 19:17:31 2002 UTC (10 years, 9 months ago) by weaselp
File length: 29239 byte(s)
Diff to previous 135 , to selected 134
Fixed a bug with reading armored keyrings consisting of more than one armored
block or having comments in front of the one armored block.

The secret pgp keyring is now stored ASCII armored with one key per ascii
armor.

NB: Due to the bug with reading armored keyrings and secring being stored
armored now, it is not adviseable to downgrade mixmaster unless special action
is taked to preserve the secret pgp keyring.

Revision 135 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 16 19:03:37 2002 UTC (10 years, 9 months ago) by rabbi
File length: 27932 byte(s)
Diff to previous 134
Mixmaster now uses the OpenPGP MDC packets (as specified in RFC 2440-bis06).

Mixmaster will use MDC packets if the MDC flag is found in the recipient's
PGP key, or by default if it is encrypting with AES.

New keys generated with Mixmaster will have the MDC flag placed in the key's
preferences. Also, cipher preferences are now advertised as CAST5, AES128,
3DES.

Revision 134 - (view) (download) (annotate) - [selected]
Modified Thu Aug 15 16:52:12 2002 UTC (10 years, 9 months ago) by weaselp
File length: 27316 byte(s)
Diff to previous 131
Several PGP fixes by Disastry:
No longer create mpi with leading zero <3D5BB519.F2E520F8@saiknes.lv>
Handle RSA keys with size not a multiple of 64 bits <3D5BA9E5.72B7C600@saiknes.lv>
put "Hash: SHA1\n" header when clearsigning with DSA/SHA1 <3D5B80F9.16F277AF@saiknes.lv>

Revision 131 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 13 14:33:23 2002 UTC (10 years, 9 months ago) by weaselp
File length: 27089 byte(s)
Diff to previous 120 , to selected 134
Fix a small bug in pgpdata.c that stopped mixmaster from reading cipher preferences. <3D590B99.7481598B@saiknes.lv>

Revision 120 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 3 17:08:02 2002 UTC (10 years, 9 months ago) by weaselp
File length: 27060 byte(s)
Diff to previous 98 , to selected 134
Submitted By: Sami Farin (safari):
Included correct header files.

Src/main.c had incorrect param to buf_appendf.

Added buf_write_sync() (used by Src/rem.c:mix_pool()).
Should a mixmaster machine crash, pool file can contain
any random data after reboot/journal recovery (at least
when using reiserfs).

Maybe not relevant, but strrchr should be used instead of
strchr when looking for domain part.

Src/pgpdata.c:pgp_elgdecrypt() passes uninitialized values
to BN_free if BN_CTX_new fails.

Src/pgpdata.c:pgp_elgencrypt() passes uninitialized value
to BN_free if the third mpi_get(key, i) fails.

Src/random.c does not check return value of read().

Src/rndseed.c does not check return value of read().

Revision 98 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 22 17:54:48 2002 UTC (10 years, 10 months ago) by rabbi
File length: 26994 byte(s)
Diff to previous 87 , to selected 134
Added support for AES in Type I messages. This should prevent lost mail if
a user attempts to send OpenPGP messages encrypted with AES.

Support for AES requires OpenSSL 0.9.7 (soon to be released.) The Install
script needs to be updated to enable AES if 0.9.7 or later is present.

Also, pgp_keylen now returns 0 instead of -1 for unknown symalgo. Output
of pgp_keylen is used in buf_appendrnd and in other functions without
checking, so they might be unhappy with -1. (We should really check for
this.)

Thanks to Disastry and Peter for working on this.

Revision 87 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 10 01:10:55 2002 UTC (10 years, 10 months ago) by weaselp
File length: 26349 byte(s)
Diff to previous 86 , to selected 134
Fix use of global vars in function
Disastry bug <3C970EAC.936504AB@saiknes.lv>

Revision 86 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 10 00:40:56 2002 UTC (10 years, 10 months ago) by weaselp
File length: 26358 byte(s)
Diff to previous 83 , to selected 134
Call RSA_free at the end of pgp_rsakeygen()

Revision 83 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 9 08:05:45 2002 UTC (10 years, 10 months ago) by rabbi
File length: 26341 byte(s)
Diff to previous 63 , to selected 134
Mixmaster was unable to use RSA private keys which were not multiples of 8
bytes. Mixmaster now resyncs before each mpi.

Revision 63 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 16 19:12:25 2002 UTC (11 years, 4 months ago) by ulfm
File length: 26173 byte(s)
Diff to previous 51 , to selected 134
Avoid failed assertion on length 0 subpacket. (Apparently there still
is a bug in the subpacket parsing code.)

Revision 51 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 15 00:34:21 2001 UTC (11 years, 5 months ago) by ulfm
File length: 26126 byte(s)
Diff to previous 1 , to selected 134
Bug fix: use proper key id for ElGamal encryption.

Revision 1 - (view) (download) (annotate) - [select for diffs]
Added Wed Oct 31 08:19:51 2001 UTC (11 years, 6 months ago) by rabbi
File length: 26036 byte(s)
Diff to selected 134
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.5