[Midnightbsd-cvs] src [7178] trunk/include/gssapi/gssapi.h: update header to match new code
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Jul 27 21:12:16 EDT 2015
Revision: 7178
http://svnweb.midnightbsd.org/src/?rev=7178
Author: laffer1
Date: 2015-07-27 21:12:16 -0400 (Mon, 27 Jul 2015)
Log Message:
-----------
update header to match new code
Modified Paths:
--------------
trunk/include/gssapi/gssapi.h
Modified: trunk/include/gssapi/gssapi.h
===================================================================
--- trunk/include/gssapi/gssapi.h 2015-07-28 01:11:59 UTC (rev 7177)
+++ trunk/include/gssapi/gssapi.h 2015-07-28 01:12:16 UTC (rev 7178)
@@ -31,15 +31,13 @@
#ifndef _GSSAPI_GSSAPI_H_
#define _GSSAPI_GSSAPI_H_
-/*
- * First, include stddef.h to get size_t defined.
- */
-#include <stddef.h>
+#include <sys/cdefs.h>
+#include <sys/_types.h>
-/*
- * Include stdint.h to get explicitly sized data types.
- */
-#include <stdint.h>
+#ifndef _SIZE_T_DECLARED
+typedef __size_t size_t;
+#define _SIZE_T_DECLARED
+#endif
#ifndef _SSIZE_T_DECLARED
typedef __ssize_t ssize_t;
@@ -46,6 +44,33 @@
#define _SSIZE_T_DECLARED
#endif
+/* Compatibility with Heimdal 1.5.1 */
+#ifndef GSSAPI_CPP_START
+#ifdef __cplusplus
+#define GSSAPI_CPP_START extern "C" {
+#define GSSAPI_CPP_END }
+#else
+#define GSSAPI_CPP_START
+#define GSSAPI_CPP_END
+#endif
+#endif
+
+/* Compatibility with Heimdal 1.5.1 */
+#ifndef BUILD_GSSAPI_LIB
+#define GSSAPI_LIB_FUNCTION
+#define GSSAPI_LIB_CALL
+#define GSSAPI_LIB_VARIABLE
+#endif
+
+/* Compatibility with Heimdal 1.5.1 */
+#ifndef GSSAPI_DEPRECATED_FUNCTION
+#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )))
+#define GSSAPI_DEPRECATED_FUNCTION(X) __attribute__((deprecated))
+#else
+#define GSSAPI_DEPRECATED_FUNCTION(X)
+#endif
+#endif
+
#if 0
/*
* If the platform supports the xom.h header file, it should be
@@ -67,7 +92,7 @@
* unsigned integer supported by the platform that has at least
* 32 bits of precision.
*/
-typedef uint32_t gss_uint32;
+typedef __uint32_t gss_uint32;
#ifdef OM_STRING
@@ -89,7 +114,7 @@
*/
typedef gss_uint32 OM_uint32;
-typedef uint64_t OM_uint64;
+typedef __uint64_t OM_uint64;
typedef struct gss_OID_desc_struct {
OM_uint32 length;
@@ -756,11 +781,11 @@
OM_uint32 gss_decapsulate_token
(const gss_buffer_t, /* mechanism independent token */
gss_OID, /* desired mechanism */
- gss_buffer_t /* decapsulated mechanism dependant token */
+ gss_buffer_t /* decapsulated mechanism dependent token */
);
OM_uint32 gss_encapsulate_token
- (const gss_buffer_t, /* mechanism dependant token */
+ (const gss_buffer_t, /* mechanism dependent token */
gss_OID, /* desired mechanism */
gss_buffer_t /* encapsulated mechanism independent token */
);
More information about the Midnightbsd-cvs
mailing list