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

« back to all changes in this revision

Viewing changes to crypto/rand/md_rand.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:
126
126
 
127
127
#include <openssl/crypto.h>
128
128
#include <openssl/err.h>
 
129
#include <openssl/fips.h>
129
130
 
130
131
#ifdef BN_DEBUG
131
132
# define PREDICT
332
333
#endif
333
334
        int do_stir_pool = 0;
334
335
 
 
336
#ifdef OPENSSL_FIPS
 
337
        if(FIPS_mode())
 
338
            {
 
339
            FIPSerr(FIPS_F_SSLEAY_RAND_BYTES,FIPS_R_NON_FIPS_METHOD);
 
340
            return 0;
 
341
            }
 
342
#endif
 
343
 
335
344
#ifdef PREDICT
336
345
        if (rand_predictable)
337
346
                {