diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-15 13:02:28 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-15 13:02:28 +1100 |
commit | af87af165f25b7db22e32c0b2e55606bc68c450c (patch) | |
tree | c0c8557324164e41b9b09b9db942b7193be69c02 /defines.h | |
parent | a63128d1a8a4077bc992e09d00e2683d1592e500 (diff) |
- (djm) [configure.ac defines.h kex.c md-sha256.c]
[openbsd-compat/sha2.h openbsd-compat/openbsd-compat.h]
[openbsd-compat/sha2.c] First stab at portability glue for SHA256
KEX support, should work with libc SHA256 support or OpenSSL
EVP_sha256 if present
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -25,7 +25,7 @@ | |||
25 | #ifndef _DEFINES_H | 25 | #ifndef _DEFINES_H |
26 | #define _DEFINES_H | 26 | #define _DEFINES_H |
27 | 27 | ||
28 | /* $Id: defines.h,v 1.130 2005/12/17 11:04:09 dtucker Exp $ */ | 28 | /* $Id: defines.h,v 1.131 2006/03/15 02:02:28 djm Exp $ */ |
29 | 29 | ||
30 | 30 | ||
31 | /* Constants */ | 31 | /* Constants */ |
@@ -496,6 +496,22 @@ struct winsize { | |||
496 | # define offsetof(type, member) ((size_t) &((type *)0)->member) | 496 | # define offsetof(type, member) ((size_t) &((type *)0)->member) |
497 | #endif | 497 | #endif |
498 | 498 | ||
499 | /* Set up BSD-style BYTE_ORDER definition if it isn't there already */ | ||
500 | /* XXX: doesn't try to cope with strange byte orders (PDP_ENDIAN) */ | ||
501 | #ifndef BYTE_ORDER | ||
502 | # ifndef LITTLE_ENDIAN | ||
503 | # define LITTLE_ENDIAN 1234 | ||
504 | # endif /* LITTLE_ENDIAN */ | ||
505 | # ifndef BIG_ENDIAN | ||
506 | # define BIG_ENDIAN 4321 | ||
507 | # endif /* BIG_ENDIAN */ | ||
508 | # ifdef WORDS_BIGENDIAN | ||
509 | # define BYTE_ORDER BIG_ENDIAN | ||
510 | # else /* WORDS_BIGENDIAN */ | ||
511 | # define BYTE_ORDER LITTLE_ENDIAN | ||
512 | # endif /* WORDS_BIGENDIAN */ | ||
513 | #endif /* BYTE_ORDER */ | ||
514 | |||
499 | /* Function replacement / compatibility hacks */ | 515 | /* Function replacement / compatibility hacks */ |
500 | 516 | ||
501 | #if !defined(HAVE_GETADDRINFO) && (defined(HAVE_OGETADDRINFO) || defined(HAVE_NGETADDRINFO)) | 517 | #if !defined(HAVE_GETADDRINFO) && (defined(HAVE_OGETADDRINFO) || defined(HAVE_NGETADDRINFO)) |