summaryrefslogtreecommitdiffstats
path: root/src/lib/ccapi/include/msg.h
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2006-07-10 18:52:37 +0000
committerAlexandra Ellwood <lxs@mit.edu>2006-07-10 18:52:37 +0000
commit8b833a42b92a095018093dd14ee487a32935d067 (patch)
tree76ecc2884fb5ceed348da1ab91450604f145916a /src/lib/ccapi/include/msg.h
parent0eb148db5bbbaa4c741caa65d78f3e965105ce40 (diff)
downloadkrb5-8b833a42b92a095018093dd14ee487a32935d067.tar.gz
krb5-8b833a42b92a095018093dd14ee487a32935d067.tar.xz
krb5-8b833a42b92a095018093dd14ee487a32935d067.zip
Fixed up warnings and whitespace issues which were confusing the
Xcode auto-indenter. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18326 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 79b9a7f72e..1682811c01 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);