~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to exec/crypto.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Loschwitz
  • Date: 2011-10-19 14:32:18 UTC
  • mfrom: (1.1.6 upstream) (5.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20111019143218-ew8phl0raqyog844
Tags: 1.4.2-1
* Changed my email address in debian/control
* Add corosync-blackbox to the corosync package
* Imported Upstream version 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#define ENDIAN_LITTLE
37
37
#elif __BYTE_ORDER == __BIG_ENDIAN
38
38
#define ENDIAN_BIG
39
 
#elif _BYTE_ORDER == _LITTLE_ENDIAN
40
 
#define ENDIAN_LITTLE
41
 
#elif _BYTE_ORDER == _BIG_ENDIAN
42
 
#define ENDIAN_BIG
43
39
#else
44
40
#error "cannot detect byte order"
45
41
#endif
1318
1314
int rng_make_prng(int bits, int wprng, prng_state *prng,
1319
1315
                  void (*callback)(void))
1320
1316
{
1321
 
   unsigned char buf[256];
 
1317
   unsigned char buf[258];
1322
1318
   int err;
1323
1319
 
1324
1320
   if (bits < 64 || bits > 1024) {