- Fixed include location of endian.h on FreeBSD (found by Gabriel)

This commit is contained in:
Paul Bakker 2009-07-19 20:50:11 +00:00
parent 38e2b482ff
commit 854963cee3
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,8 @@ Changes
* Fixed typo in name of POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE. * Fixed typo in name of POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE.
Bug fixes Bug fixes
* Fixed include location of endian.h on FreeBSD (found by
Gabriel)
* Fixed HMAC-MD2 by modifying md2_starts(), so that the * Fixed HMAC-MD2 by modifying md2_starts(), so that the
required HMAC ipad and opad variables are not cleared. required HMAC ipad and opad variables are not cleared.
(found by code coverage tests) (found by code coverage tests)

View File

@ -55,7 +55,11 @@ static int wsa_init_done = 0;
#include <fcntl.h> #include <fcntl.h>
#include <netdb.h> #include <netdb.h>
#include <errno.h> #include <errno.h>
#if defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <endian.h> #include <endian.h>
#endif
#endif #endif