Skip to content
  1. Mar 20, 2003
  2. Mar 19, 2003
  3. Mar 18, 2003
  4. Mar 15, 2003
  5. Mar 14, 2003
  6. Mar 13, 2003
  7. Mar 12, 2003
  8. Mar 11, 2003
    • Geoff Thorpe's avatar
      The default implementation of DSA_METHOD has an interdependence on the · 879650b8
      Geoff Thorpe authored
      dsa_mod_exp() and bn_mod_exp() handlers from dsa_do_verify() and
      dsa_sign_setup(). When another DSA_METHOD implementation does not define
      these lower-level handlers, it becomes impossible to do a fallback to
      software on errors using a simple DSA_OpenSSL()->fn(key).
      
      This change allows the default DSA_METHOD to function in such circumstances
      by only using dsa_mod_exp() and bn_mod_exp() handlers if they exist,
      otherwise using BIGNUM implementations directly (which is what those
      handlers did before this change). There should be no noticable difference
      for the software case, or indeed any custom case that didn't already
      segfault, except perhaps that there is now one less level of indirection in
      all cases.
      
      PR: 507
      879650b8