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

« back to all changes in this revision

Viewing changes to crypto/rand/rand.h

  • 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:
71
71
extern "C" {
72
72
#endif
73
73
 
 
74
#if defined(OPENSSL_FIPS)
 
75
#define FIPS_RAND_SIZE_T int
 
76
#endif
 
77
 
74
78
typedef struct rand_meth_st
75
79
        {
76
80
        void (*seed)(const void *buf, int num);
121
125
/* Error codes for the RAND functions. */
122
126
 
123
127
/* Function codes. */
 
128
#define RAND_F_FIPS_RAND_BYTES                           102
124
129
#define RAND_F_RAND_GET_RAND_METHOD                      101
125
130
#define RAND_F_SSLEAY_RAND_BYTES                         100
126
131
 
127
132
/* Reason codes. */
 
133
#define RAND_R_NON_FIPS_METHOD                           101
 
134
#define RAND_R_PRNG_ASKING_FOR_TOO_MUCH                  105
 
135
#define RAND_R_PRNG_NOT_REKEYED                          103
 
136
#define RAND_R_PRNG_NOT_RESEEDED                         104
128
137
#define RAND_R_PRNG_NOT_SEEDED                           100
 
138
#define RAND_R_PRNG_STUCK                                102
129
139
 
130
140
#ifdef  __cplusplus
131
141
}