~ubuntu-branches/ubuntu/precise/mutt/precise

« back to all changes in this revision

Viewing changes to pgppubring.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg, Adeodato Simó, Christoph Berg
  • Date: 2007-11-03 23:00:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071103230004-43e36pnhub87junc
Tags: 1.5.17-1
[ Adeodato Simó ]
* Move the packaging back to Bazaar, adjust X-VCS-* accordingly.

[ Christoph Berg ]
* Mention libsasl2-modules-gssapi-mit in README.Debian. (Closes: #433425)
* Call autoreconf at build time, drop the autotools-update patch.
* Update menu file, add lintian override file.
* Refresh patches.

* New upstream version:
  + fix segfaults with single byte 8-bit characters in index_format.
    (Closes: #420598, Mutt: #2882)
  + properly render subject headers with encoded linefeeds.
    (Closes: #264014, Mutt: #1810)
  + only calls gnutls_error_is_fatal when gnutls_record_recv returns a
    negative value. (Closes: #439775, Mutt: #2954)
  + Large file support for mutt_pretty_size().
    (Closes: #352478, #416555, Mutt: #2191)
  + Do not consider empty pipes for filtering in format strings.
    (Closes: #447340)

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
 
159
159
 
160
160
/* The actual key ring parser */
161
 
 
162
161
static void pgp_make_pgp2_fingerprint (unsigned char *buff,
163
162
                                       unsigned char *digest)
164
163
{
165
 
 
166
 
  MD5_CTX context;
 
164
  struct md5_ctx ctx;
167
165
  unsigned int size = 0;
168
166
 
169
 
 
170
 
  MD5Init (&context);
 
167
  md5_init_ctx (&ctx);
171
168
 
172
169
  size = (buff[0] << 8) + buff[1];
173
170
  size = ((size + 7) / 8);
174
171
  buff = &buff[2];
175
172
 
176
 
  MD5Update (&context, buff, size);
 
173
  md5_process_bytes (buff, size, &ctx);
 
174
 
177
175
  buff = &buff[size];
178
176
 
179
177
  size = (buff[0] << 8) + buff[1];
180
178
  size = ((size + 7) / 8);
181
179
  buff = &buff[2];
182
180
 
183
 
  MD5Update (&context, buff, size);
184
 
 
185
 
  MD5Final (digest, &context);
186
 
 
 
181
  md5_process_bytes (buff, size, &ctx);
 
182
 
 
183
  md5_finish_ctx (&ctx, digest);
187
184
} /* pgp_make_pgp2_fingerprint() */
188
185
 
189
186
static pgp_key_t pgp_parse_pgp2_key (unsigned char *buff, size_t l)