api.h   api.h 
/* api.h Header file for GSS-API. /* api.h --- Header file for GSS-API.
* Copyright (C) 2003, 2004 Simon Josefsson * Copyright (C) 2003, 2004 Simon Josefsson
* *
* This file is part of the Generic Security Service (GSS). * This file is part of the Generic Security Service (GSS).
* *
* GSS is free software; you can redistribute it and/or modify it * GSS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by * under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* GSS is distributed in the hope that it will be useful, but WITHOUT * GSS is distributed in the hope that it will be useful, but WITHOUT
skipping to change at line 63 skipping to change at line 63
*/ */
#ifndef GSSAPI_H_ #ifndef GSSAPI_H_
#define GSSAPI_H_ #define GSSAPI_H_
/* /*
* First, include stddef.h to get size_t defined. * First, include stddef.h to get size_t defined.
*/ */
#include <stddef.h> #include <stddef.h>
#ifdef GSS_SHOULD_INCLUDE_XOM
/*
* If the platform supports the xom.h header file, it should be
* included here.
*/
#include <xom.h>
#endif
/* /*
* Now define the three implementation-dependent types. * Now define the three implementation-dependent types.
*/ */
typedef struct gss_ctx_id_struct *gss_ctx_id_t; typedef struct gss_ctx_id_struct *gss_ctx_id_t;
typedef struct gss_cred_id_struct *gss_cred_id_t; typedef struct gss_cred_id_struct *gss_cred_id_t;
typedef struct gss_name_struct *gss_name_t; typedef struct gss_name_struct *gss_name_t;
/* /*
* The following type must be defined as the smallest natural * The following type must be defined as the smallest natural
* unsigned integer supported by the platform that has at least * unsigned integer supported by the platform that has at least
skipping to change at line 92 skipping to change at line 84
*/ */
#include <limits.h> #include <limits.h>
#if USHRT_MAX >= 4294967295 #if USHRT_MAX >= 4294967295
typedef unsigned short gss_uint32; typedef unsigned short gss_uint32;
#elif UINT_MAX >= 4294967295 #elif UINT_MAX >= 4294967295
typedef unsigned int gss_uint32; typedef unsigned int gss_uint32;
#else /* unsigned long's must be at least 32 bits according to K&R */ #else /* unsigned long's must be at least 32 bits according to K&R */
typedef unsigned long gss_uint32; typedef unsigned long gss_uint32;
#endif #endif
#ifdef OM_STRING
/*
* We have included the xom.h header file. Verify that OM_uint32
* is defined correctly.
*/
#if sizeof(gss_uint32) != sizeof(OM_uint32)
#error Incompatible definition of OM_uint32 from xom.h
#endif
typedef OM_object_identifier gss_OID_desc, *gss_OID;
#else
/* /*
* We can't use X/Open definitions, so roll our own. * We don't use X/Open definitions, so roll our own.
*/ */
typedef gss_uint32 OM_uint32; typedef gss_uint32 OM_uint32;
typedef struct gss_OID_desc_struct typedef struct gss_OID_desc_struct
{ {
OM_uint32 length; OM_uint32 length;
void *elements; void *elements;
} gss_OID_desc, *gss_OID; } gss_OID_desc, *gss_OID;
#endif
typedef struct gss_OID_set_desc_struct typedef struct gss_OID_set_desc_struct
{ {
size_t count; size_t count;
gss_OID elements; gss_OID elements;
} gss_OID_set_desc, *gss_OID_set; } gss_OID_set_desc, *gss_OID_set;
typedef struct gss_buffer_desc_struct typedef struct gss_buffer_desc_struct
{ {
size_t length; size_t length;
void *value; void *value;
 End of changes. 5 change blocks. 
25 lines changed or deleted 2 lines changed or added


 ext.h   ext.h 
skipping to change at line 39 skipping to change at line 39
extern const char *gss_check_version (const char *req_version); extern const char *gss_check_version (const char *req_version);
/* See ext.c. */ /* See ext.c. */
extern int gss_oid_equal (gss_OID first_oid, gss_OID second_oid); extern int gss_oid_equal (gss_OID first_oid, gss_OID second_oid);
extern OM_uint32 extern OM_uint32
gss_copy_oid (OM_uint32 * minor_status, gss_copy_oid (OM_uint32 * minor_status,
const gss_OID src_oid, gss_OID dest_oid); const gss_OID src_oid, gss_OID dest_oid);
extern OM_uint32 extern OM_uint32
gss_duplicate_oid (OM_uint32 * minor_status, gss_duplicate_oid (OM_uint32 * minor_status,
const gss_OID src_oid, gss_OID * dest_oid); const gss_OID src_oid, gss_OID * dest_oid);
extern OM_uint32
gss_release_oid (OM_uint32 * minor_status, gss_OID * oid);
extern int gss_userok (const gss_name_t name, const char *username); extern int gss_userok (const gss_name_t name, const char *username);
/* See asn1.c. */ /* See asn1.c. */
extern int extern int
gss_encapsulate_token (gss_buffer_t input_message, gss_encapsulate_token (gss_buffer_t input_message,
gss_OID token_oid, gss_buffer_t output_message); gss_OID token_oid, gss_buffer_t output_message);
extern int extern int
gss_encapsulate_token_prefix (gss_buffer_t input_message, gss_encapsulate_token_prefix (gss_buffer_t input_message,
char *prefix, size_t prefixlen, char *prefix, size_t prefixlen,
gss_OID token_oid, gss_buffer_t output_message ); gss_OID token_oid, gss_buffer_t output_message );
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added


 gss.h   gss.h 
skipping to change at line 29 skipping to change at line 29
* *
*/ */
#ifndef _GSS_H #ifndef _GSS_H
#define _GSS_H #define _GSS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#define GSS_VERSION "0.0.10" #define GSS_VERSION "0.0.11"
#include <gss/api.h> #include <gss/api.h>
#include <gss/ext.h> #include <gss/ext.h>
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* _GSS_H */ #endif /* _GSS_H */
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/