src/share/native/sun/security/jgss/wrapper/gssapi.h

Print this page
rev 6670 : 8010192: Enable native JGSS provider on Mac


  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /* This is the gssapi.h prologue. */
  27 /* It contains some choice pieces of autoconf.h */
  28 #define GSS_SIZEOF_INT 4
  29 #define GSS_SIZEOF_LONG 4
  30 #define GSS_SIZEOF_SHORT 2
  31 
  32 #ifndef _GSSAPI_H_
  33 #define _GSSAPI_H_
  34 







  35 #ifdef __cplusplus
  36 extern "C" {
  37 #endif /* __cplusplus */
  38 




  39 /*
  40  * First, include stddef.h to get size_t defined.
  41  */
  42 #include <stddef.h>
  43 
  44 /*
  45  * POSIX says that sys/types.h is where size_t is defined.
  46  */
  47 #include <sys/types.h>
  48 
  49 typedef void * gss_name_t;
  50 typedef void * gss_cred_id_t;
  51 typedef void * gss_ctx_id_t;
  52 
  53 /*
  54  * The following type must be defined as the smallest natural unsigned integer
  55  * supported by the platform that has at least 32 bits of precision.
  56  */
  57 #if (GSS_SIZEOF_SHORT == 4)
  58 typedef unsigned short gss_uint32;


 654         OM_uint32  *,           /* minor_status */
 655         const gss_name_t,       /* input_name */
 656         gss_buffer_t            /* exported_name */
 657 );
 658 
 659 /* New for V2 */
 660 OM_uint32 gss_duplicate_name(
 661         OM_uint32  *,           /* minor_status */
 662         const gss_name_t,       /* input_name */
 663         gss_name_t *            /* dest_name */
 664 );
 665 
 666 /* New for V2 */
 667 OM_uint32 gss_canonicalize_name(
 668         OM_uint32  *,           /* minor_status */
 669         const gss_name_t,       /* input_name */
 670         const gss_OID,          /* mech_type */
 671         gss_name_t *            /* output_name */
 672 );
 673 




 674 #ifdef __cplusplus
 675 }
 676 #endif
 677 
 678 #endif /* _GSSAPI_H_ */


  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /* This is the gssapi.h prologue. */
  27 /* It contains some choice pieces of autoconf.h */
  28 #define GSS_SIZEOF_INT 4
  29 #define GSS_SIZEOF_LONG 4
  30 #define GSS_SIZEOF_SHORT 2
  31 
  32 #ifndef _GSSAPI_H_
  33 #define _GSSAPI_H_
  34 
  35 #if defined(__MACH__) && defined(__APPLE__)
  36 #       include <TargetConditionals.h>
  37 #       if TARGET_RT_MAC_CFM
  38 #               error "Use KfM 4.0 SDK headers for CFM compilation."
  39 #       endif
  40 #endif
  41 
  42 #ifdef __cplusplus
  43 extern "C" {
  44 #endif /* __cplusplus */
  45 
  46 #if TARGET_OS_MAC
  47 #    pragma pack(push,2)
  48 #endif
  49 
  50 /*
  51  * First, include stddef.h to get size_t defined.
  52  */
  53 #include <stddef.h>
  54 
  55 /*
  56  * POSIX says that sys/types.h is where size_t is defined.
  57  */
  58 #include <sys/types.h>
  59 
  60 typedef void * gss_name_t;
  61 typedef void * gss_cred_id_t;
  62 typedef void * gss_ctx_id_t;
  63 
  64 /*
  65  * The following type must be defined as the smallest natural unsigned integer
  66  * supported by the platform that has at least 32 bits of precision.
  67  */
  68 #if (GSS_SIZEOF_SHORT == 4)
  69 typedef unsigned short gss_uint32;


 665         OM_uint32  *,           /* minor_status */
 666         const gss_name_t,       /* input_name */
 667         gss_buffer_t            /* exported_name */
 668 );
 669 
 670 /* New for V2 */
 671 OM_uint32 gss_duplicate_name(
 672         OM_uint32  *,           /* minor_status */
 673         const gss_name_t,       /* input_name */
 674         gss_name_t *            /* dest_name */
 675 );
 676 
 677 /* New for V2 */
 678 OM_uint32 gss_canonicalize_name(
 679         OM_uint32  *,           /* minor_status */
 680         const gss_name_t,       /* input_name */
 681         const gss_OID,          /* mech_type */
 682         gss_name_t *            /* output_name */
 683 );
 684 
 685 #if TARGET_OS_MAC
 686 #    pragma pack(pop)
 687 #endif
 688 
 689 #ifdef __cplusplus
 690 }
 691 #endif
 692 
 693 #endif /* _GSSAPI_H_ */