~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to agent/pksign.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
}
76
76
 
77
77
 
78
 
/* Special version of do_encode_md to take care of pckcs#1 padding.
 
78
/* Special version of do_encode_md to take care of pkcs#1 padding.
79
79
   For TLS-MD5SHA1 we need to do the padding ourself as Libgrypt does
80
80
   not know about this special scheme.  Fixme: We should have a
81
81
   pkcs1-only-padding flag for Libgcrypt. */
181
181
      gcry_sexp_t s_hash = NULL;
182
182
 
183
183
      /* Put the hash into a sexp */
184
 
      if (ctrl->digest.algo == GCRY_MD_USER_TLS_MD5SHA1)
 
184
      if (ctrl->digest.algo == MD_USER_TLS_MD5SHA1)
185
185
        rc = do_encode_raw_pkcs1 (ctrl->digest.value,
186
186
                                  ctrl->digest.valuelen,
187
187
                                  gcry_pk_get_nbits (s_skey),