summaryrefslogtreecommitdiff
path: root/src/lib/ccapi/include/msg.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-07-17 20:57:49 +0000
committerKen Raeburn <raeburn@mit.edu>2006-07-17 20:57:49 +0000
commitdec35d563a36b4480dac9a6db3d511267fe282ba (patch)
treed183fa573151556aadfc89494c8a255d17a57cb2 /src/lib/ccapi/include/msg.h
parent92dd81c0e8c4a23f6b17cc695a9bcb45defe1445 (diff)
downloadkrb5-ldap-integ.tar.gz
merge to trunk rev 18332ldap-integ
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ldap-integ@18333 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/ccapi/include/msg.h')
-rw-r--r--src/lib/ccapi/include/msg.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/ccapi/include/msg.h b/src/lib/ccapi/include/msg.h
index 79b9a7f72..1682811c0 100644
--- a/src/lib/ccapi/include/msg.h
+++ b/src/lib/ccapi/include/msg.h
@@ -68,6 +68,11 @@
#include "CredentialsCache.h"
#include "generic_lists.h"
+#if TARGET_OS_MAC
+#define htonll(x) OSSwapHostToBigInt64(x)
+#define ntohll(x) OSSwapBigToHostInt64(x)
+#endif
+
struct cc_msg_t {
cc_uint32 type; /*type of message*/
cc_uint8 *flat; /*flattened representation of this message*/
@@ -136,9 +141,9 @@ cc_int32 cci_msg_add_data_blob(cc_msg_t* msg, void *data, cc_uint32 len, cc_uint
cc_int32 cci_msg_add_header(cc_msg_t* msg, void *header, cc_uint32 header_len);
cc_int32 cci_msg_calc_blob_pos(cc_msg_t* msg, void *data, cc_uint32 len, cc_uint32 * sizep);
cc_int32 cci_msg_flatten(cc_msg_t* msg, void **);
-cc_int32 cci_msg_calc_magic(void *flat, int flat_len, cc_uint32 * sizep);
-cc_int32 cci_msg_verify(void* flat, int flat_len, cc_uint32 * sizep);
-cc_int32 cci_msg_unflatten(void *flat, int flat_len, cc_msg_t** msgpp);
+cc_int32 cci_msg_calc_magic(void *flat, cc_uint32 flat_len, cc_uint32 * sizep);
+cc_int32 cci_msg_verify(void* flat, cc_uint32 flat_len, cc_uint32 * sizep);
+cc_int32 cci_msg_unflatten(void *flat, cc_uint32 flat_len, cc_msg_t** msgpp);
cc_int32 cci_msg_retrieve_blob(cc_msg_t* msg, cc_uint32 blob_offset, cc_uint32 blob_len, char **);
cc_int32 cci_msg_destroy(cc_msg_t* msg);