mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 21:34:25 +08:00
Update to FreeBSD head 2016-08-23
Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
This commit is contained in:
@@ -31,21 +31,46 @@
|
||||
#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;
|
||||
#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 @@ typedef struct _gss_name_t *gss_name_t;
|
||||
* 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 OM_object_identifier gss_OID_desc, *gss_OID;
|
||||
*/
|
||||
|
||||
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_release_oid
|
||||
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 */
|
||||
);
|
||||
|
Reference in New Issue
Block a user