~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/dsa/dsa_vrf.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
#include <openssl/rand.h>
66
66
#include <openssl/asn1.h>
67
67
#include <openssl/asn1_mac.h>
 
68
#ifndef OPENSSL_NO_ENGINE
 
69
#include <openssl/engine.h>
 
70
#endif
 
71
#include <openssl/fips.h>
68
72
 
69
73
int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
70
74
                  DSA *dsa)
71
75
        {
 
76
#ifdef OPENSSL_FIPS
 
77
        if(FIPS_mode() && !FIPS_dsa_check(dsa))
 
78
                return -1;
 
79
#endif
72
80
        return dsa->meth->dsa_do_verify(dgst, dgst_len, sig, dsa);
73
81
        }
74
82