diff options
author | Lukas Slebodnik <lukas.slebodnik@intrak.sk> | 2016-11-18 17:29:44 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-11-25 10:31:33 +0100 |
commit | 58aa8d645fa95641431a2828e985f80c7fc36465 (patch) | |
tree | 2cf12114aeaa392bf6034dfef5835d75b0421124 /src/util | |
parent | 99b2352f909c548811617389641a9ccc3e17bc53 (diff) | |
download | sssd-58aa8d645fa95641431a2828e985f80c7fc36465.tar.gz sssd-58aa8d645fa95641431a2828e985f80c7fc36465.tar.xz sssd-58aa8d645fa95641431a2828e985f80c7fc36465.zip |
UTIL: Fix implicit declaration of function 'htobe32'
Include internal wrapper header file for endian related functions.
The "util/sss_endian.h" include available header file on different
platform or it provides compatible macros in the worst case.
Breakage noticed when building SSSD on FreeBSD
CC src/util/cert/nss/libsss_cert_la-cert.lo
src/util/cert/nss/cert.c: In function 'cert_to_ssh_key':
src/util/cert/nss/cert.c:358: error: implicit declaration of function 'htobe32'
gmake[2]: *** [Makefile:12421: src/util/cert/nss/libsss_cert_la-cert.lo] Error 1
gmake[2]: Leaving directory '/root/sssd_from_git'
gmake[1]: *** [Makefile:20050: all-recursive] Error 1
gmake[1]: Leaving directory '/root/sssd_from_git'
gmake: *** [Makefile:7116: all] Error 2
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/cert/libcrypto/cert.c | 1 | ||||
-rw-r--r-- | src/util/cert/nss/cert.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/util/cert/libcrypto/cert.c b/src/util/cert/libcrypto/cert.c index aba598d7c..c54db86bb 100644 --- a/src/util/cert/libcrypto/cert.c +++ b/src/util/cert/libcrypto/cert.c @@ -22,6 +22,7 @@ #include <openssl/pem.h> #include "util/util.h" +#include "util/sss_endian.h" errno_t sss_cert_der_to_pem(TALLOC_CTX *mem_ctx, const uint8_t *der_blob, size_t der_size, char **pem, size_t *pem_size) diff --git a/src/util/cert/nss/cert.c b/src/util/cert/nss/cert.c index b5e0ff961..9d31cfe9b 100644 --- a/src/util/cert/nss/cert.c +++ b/src/util/cert/nss/cert.c @@ -31,6 +31,7 @@ #include "util/crypto/sss_crypto.h" #include "util/crypto/nss/nss_util.h" #include "util/cert.h" +#include "util/sss_endian.h" #define NS_CERT_HEADER "-----BEGIN CERTIFICATE-----" #define NS_CERT_TRAILER "-----END CERTIFICATE-----" |