gss

package
v0.6.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gss provides Go bindings for the GSS framework.

Conduct secure, authenticated network transactions.

The open source Generic Security Service Application Programming Interface (GSS-API) defines a standardized interface through which the operating system vends secure data transport operations. The GSS framework provides an implementation of the interface and the underlying libraries.

Memory and Context

Credentials

Names and Object Identifiers

  • Name Handling: Manage names for GSS-API principals such as a person, a machine, or an application.
  • Object Identifiers: Store security mechanisms, QOPs (Quality of Protection values), and name types.

Messages

Structure and macros

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GSSCreateCredentialFromUUID

func GSSCreateCredentialFromUUID(uuid corefoundation.CFUUIDRef) unsafe.Pointer

GSSCreateCredentialFromUUID creates a credential from a universally unique identifier.

See: https://developer.apple.com/documentation/GSS/GSSCreateCredentialFromUUID(_:)

func GSSCreateError

func GSSCreateError(mech unsafe.Pointer, major_status OM_uint32, minor_status OM_uint32) corefoundation.CFErrorRef

GSSCreateError returns an error object based on GSS-API major and minor status codes.

See: https://developer.apple.com/documentation/GSS/GSSCreateError(_:_:_:)

func GSSCreateName

func GSSCreateName(name corefoundation.CFTypeRef, name_type unsafe.Pointer, err *corefoundation.CFErrorRef) unsafe.Pointer

GSSCreateName returns a GSS name given a buffer and a type.

See: https://developer.apple.com/documentation/GSS/GSSCreateName(_:_:_:)

func GSSCredentialCopyName

func GSSCredentialCopyName(cred unsafe.Pointer) unsafe.Pointer

GSSCredentialCopyName returns the name describing the credential.

See: https://developer.apple.com/documentation/GSS/GSSCredentialCopyName(_:)

func GSSCredentialCopyUUID

func GSSCredentialCopyUUID(credential unsafe.Pointer) corefoundation.CFUUID

GSSCredentialCopyUUID returns a copy of the universally unique identifier corresponding to a GSS credential.

See: https://developer.apple.com/documentation/GSS/GSSCredentialCopyUUID(_:)

func GSSNameCreateDisplayString

func GSSNameCreateDisplayString(name unsafe.Pointer) corefoundation.CFStringRef

GSSNameCreateDisplayString returns a string suitable for displaying to the user from a GSS name.

See: https://developer.apple.com/documentation/GSS/GSSNameCreateDisplayString(_:)

func Gss_oid_equal

func Gss_oid_equal(a unsafe.Pointer, b unsafe.Pointer) int32

Gss_oid_equal returns a flag that indicates whether two object identifiers are the same.

See: https://developer.apple.com/documentation/GSS/gss_oid_equal(_:_:)

func Gss_userok

func Gss_userok(name unsafe.Pointer, user string) int32

Gss_userok returns a flag that indicates if a given user is authorized.

See: https://developer.apple.com/documentation/GSS/gss_userok(_:_:)

Types

type GssAuthIdentity

type GssAuthIdentity = Gss_auth_identity_t

GssAuthIdentity is a Go-name alias for Gss_auth_identity_t.

type GssBuffer

type GssBuffer = Gss_buffer_t

GssBuffer is a Go-name alias for Gss_buffer_t.

type GssBufferDesc

type GssBufferDesc = Gss_buffer_desc

GssBufferDesc is a Go-name alias for Gss_buffer_desc.

type GssBufferSet

type GssBufferSet = Gss_buffer_set_t

GssBufferSet is a Go-name alias for Gss_buffer_set_t.

type GssBufferSetDesc

type GssBufferSetDesc = Gss_buffer_set_desc

GssBufferSetDesc is a Go-name alias for Gss_buffer_set_desc.

type GssChannelBindings

type GssChannelBindings = Gss_channel_bindings_t

GssChannelBindings is a Go-name alias for Gss_channel_bindings_t.

type GssConstBuffer

type GssConstBuffer = Gss_const_buffer_t

GssConstBuffer is a Go-name alias for Gss_const_buffer_t.

type GssConstChannelBindings

type GssConstChannelBindings = Gss_const_channel_bindings_t

GssConstChannelBindings is a Go-name alias for Gss_const_channel_bindings_t.

type GssConstCredID

type GssConstCredID = Gss_const_cred_id_t

GssConstCredID is a Go-name alias for Gss_const_cred_id_t.

type GssConstCtxID

type GssConstCtxID = Gss_const_ctx_id_t

GssConstCtxID is a Go-name alias for Gss_const_ctx_id_t.

type GssConstName

type GssConstName = Gss_const_name_t

GssConstName is a Go-name alias for Gss_const_name_t.

type GssConstOid

type GssConstOid = Gss_const_OID

GssConstOid is a Go-name alias for Gss_const_OID.

type GssConstOidSet

type GssConstOidSet = Gss_const_OID_set

GssConstOidSet is a Go-name alias for Gss_const_OID_set.

type GssCredID

type GssCredID = Gss_cred_id_t

GssCredID is a Go-name alias for Gss_cred_id_t.

type GssCredUsage

type GssCredUsage = Gss_cred_usage_t

GssCredUsage is a Go-name alias for Gss_cred_usage_t.

type GssCtxID

type GssCtxID = Gss_ctx_id_t

GssCtxID is a Go-name alias for Gss_ctx_id_t.

type GssIovBuffer

type GssIovBuffer = Gss_iov_buffer_t

GssIovBuffer is a Go-name alias for Gss_iov_buffer_t.

type GssIovBufferDesc

type GssIovBufferDesc = Gss_iov_buffer_desc

GssIovBufferDesc is a Go-name alias for Gss_iov_buffer_desc.

type GssKrb5CfxKeydata

type GssKrb5CfxKeydata = Gss_krb5_cfx_keydata_t

GssKrb5CfxKeydata is a Go-name alias for Gss_krb5_cfx_keydata_t.

type GssKrb5LucidContextV1

type GssKrb5LucidContextV1 = Gss_krb5_lucid_context_v1_t

GssKrb5LucidContextV1 is a Go-name alias for Gss_krb5_lucid_context_v1_t.

type GssKrb5LucidContextVersion

type GssKrb5LucidContextVersion = Gss_krb5_lucid_context_version_t

GssKrb5LucidContextVersion is a Go-name alias for Gss_krb5_lucid_context_version_t.

type GssKrb5LucidKey

type GssKrb5LucidKey = Gss_krb5_lucid_key_t

GssKrb5LucidKey is a Go-name alias for Gss_krb5_lucid_key_t.

type GssKrb5Rfc1964Keydata

type GssKrb5Rfc1964Keydata = Gss_krb5_rfc1964_keydata_t

GssKrb5Rfc1964Keydata is a Go-name alias for Gss_krb5_rfc1964_keydata_t.

type GssName

type GssName = Gss_name_t

GssName is a Go-name alias for Gss_name_t.

type GssOid

type GssOid = Gss_OID

GssOid is a Go-name alias for Gss_OID.

type GssOidDesc

type GssOidDesc = Gss_OID_desc

GssOidDesc is a Go-name alias for Gss_OID_desc.

type GssOidSet

type GssOidSet = Gss_OID_set

GssOidSet is a Go-name alias for Gss_OID_set.

type GssOidSetDesc

type GssOidSetDesc = Gss_OID_set_desc

GssOidSetDesc is a Go-name alias for Gss_OID_set_desc.

type GssQop

type GssQop = Gss_qop_t

GssQop is a Go-name alias for Gss_qop_t.

type GssStatusID

type GssStatusID = Gss_status_id_t

GssStatusID is a Go-name alias for Gss_status_id_t.

type GssUint32

type GssUint32 = Gss_uint32

GssUint32 is a Go-name alias for Gss_uint32.

type Gss_OID

type Gss_OID = uintptr

Gss_OID is a pointer to the OID descriptor that exchanges object identifiers with many GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_OID

type Gss_OID_desc

type Gss_OID_desc = Gss_OID_desc_struct

Gss_OID_desc is the OID descriptor that exchanges object identifiers with many GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_OID_desc

type Gss_OID_desc_struct

type Gss_OID_desc_struct struct {
	Length   OM_uint32      // The number of octets in the object identifier.
	Elements unsafe.Pointer // A pointer to the octets that make up the object identifier.

}

Gss_OID_desc_struct - The structure for an OID descriptor that exchanges object identifiers with many GSS-API functions.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_OID_desc_struct

type Gss_OID_set

type Gss_OID_set = uintptr

Gss_OID_set is a pointer to a descriptor that manages an array of OID descriptors.

See: https://developer.apple.com/documentation/GSS/gss_OID_set

type Gss_OID_set_desc

type Gss_OID_set_desc = Gss_OID_set_desc_struct

Gss_OID_set_desc is the descriptor that manages an array of OID descriptors.

See: https://developer.apple.com/documentation/GSS/gss_OID_set_desc

type Gss_OID_set_desc_struct

type Gss_OID_set_desc_struct struct {
	Count    uintptr        // The number of OID descriptors in the array.
	Elements unsafe.Pointer // A pointer to the array of OID descriptors.

}

Gss_OID_set_desc_struct - The structure for an OID set descriptor that manages an array of OID descriptors.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_OID_set_desc_struct

type Gss_auth_identity_t

type Gss_auth_identity_t = uintptr

Gss_auth_identity_t is a pointer to an opaque object used to manage authentication identities.

See: https://developer.apple.com/documentation/GSS/gss_auth_identity_t

type Gss_buffer_desc

type Gss_buffer_desc = Gss_buffer_desc_struct

Gss_buffer_desc is the buffer descriptor that you use to exchange octet streams with many GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_buffer_desc

type Gss_buffer_desc_struct

type Gss_buffer_desc_struct struct {
	Length uintptr        // The number of bytes held in the buffer.
	Value  unsafe.Pointer // A pointer to the bytes in the buffer.

}

Gss_buffer_desc_struct - The structure for a buffer descriptor that you use to exchange octet streams with many GSS-API functions.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_buffer_desc_struct

type Gss_buffer_set_desc

type Gss_buffer_set_desc = Gss_buffer_set_desc_struct

Gss_buffer_set_desc is the descriptor that you use to manage an array of buffer descriptors.

See: https://developer.apple.com/documentation/GSS/gss_buffer_set_desc

type Gss_buffer_set_desc_struct

type Gss_buffer_set_desc_struct struct {
	Count    uintptr          // The number of buffer descriptors in the array.
	Elements *Gss_buffer_desc // A pointer to an array of buffer descriptors.

}

Gss_buffer_set_desc_struct - The structure for a buffer set descriptor that you use to manage an array of buffer descriptors.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_buffer_set_desc_struct

type Gss_buffer_set_t

type Gss_buffer_set_t = uintptr

Gss_buffer_set_t is a pointer to the descriptor that you use to manage an array of buffer descriptors.

See: https://developer.apple.com/documentation/GSS/gss_buffer_set_t

type Gss_buffer_t

type Gss_buffer_t = uintptr

Gss_buffer_t is a pointer to a buffer descriptor that you use to exchange octet streams with many GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_buffer_t

type Gss_channel_bindings_struct

type Gss_channel_bindings_struct struct {
	Initiator_addrtype OM_uint32       // The type of address contained in the [initiator_address](<https://developer.apple.com/documentation/GSS/gss_channel_bindings_struct/initiator_address>) field.
	Initiator_address  Gss_buffer_desc // The network address of the acceptor, in the form specified by [initiator_addrtype](<https://developer.apple.com/documentation/GSS/gss_channel_bindings_struct/initiator_addrtype>).
	Acceptor_addrtype  OM_uint32       // The type of address contained in the [acceptor_address](<https://developer.apple.com/documentation/GSS/gss_channel_bindings_struct/acceptor_address>) field.
	Acceptor_address   Gss_buffer_desc // The network address of the acceptor, in the form specified by [acceptor_addrtype](<https://developer.apple.com/documentation/GSS/gss_channel_bindings_struct/acceptor_addrtype>).
	Application_data   Gss_buffer_desc // Application specific data for use in communicating a channel binding.

}

Gss_channel_bindings_struct - The structure defining a channel bindings descriptor that specifies the communications channel used to carry a context.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_channel_bindings_struct

type Gss_channel_bindings_t

type Gss_channel_bindings_t = uintptr

Gss_channel_bindings_t is a pointer to a channel bindings descriptor that specifies the communications channel used to carry a context.

See: https://developer.apple.com/documentation/GSS/gss_channel_bindings_t

type Gss_const_OID

type Gss_const_OID = unsafe.Pointer

Gss_const_OID is a pointer to an immutable OID descriptor exchanges object identifiers with many GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_const_OID

type Gss_const_OID_set

type Gss_const_OID_set = unsafe.Pointer

Gss_const_OID_set is a pointer to an immutable descriptor manages an array of OID descriptors.

See: https://developer.apple.com/documentation/GSS/gss_const_OID_set

type Gss_const_buffer_t

type Gss_const_buffer_t = unsafe.Pointer

Gss_const_buffer_t is a pointer to an immutable buffer descriptor that you use to exchange octet streams with many GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_const_buffer_t

type Gss_const_channel_bindings_t

type Gss_const_channel_bindings_t = uintptr

Gss_const_channel_bindings_t is a pointer to an immutable channel bindings descriptor that you use to specify the communications channel used to carry a context.

See: https://developer.apple.com/documentation/GSS/gss_const_channel_bindings_t

type Gss_const_cred_id_t

type Gss_const_cred_id_t = uintptr

Gss_const_cred_id_t is a pointer to an immutable opaque type that you use to exchange a credential object with GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_const_cred_id_t

type Gss_const_ctx_id_t

type Gss_const_ctx_id_t = unsafe.Pointer

Gss_const_ctx_id_t is a pointer to an immutable opaque type that you use to communicate context pointers with GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_const_ctx_id_t

type Gss_const_name_t

type Gss_const_name_t = uintptr

Gss_const_name_t is a pointer to an immutable version of the opaque descriptor used to exchange name objects with GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_const_name_t

type Gss_cred_id_t

type Gss_cred_id_t = uintptr

Gss_cred_id_t is a pointer to an opaque type that you use to exchange a credential object with GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_cred_id_t

type Gss_cred_usage_t

type Gss_cred_usage_t = int32

Gss_cred_usage_t is a credential usage value.

See: https://developer.apple.com/documentation/GSS/gss_cred_usage_t

type Gss_ctx_id_t

type Gss_ctx_id_t = uintptr

Gss_ctx_id_t is a pointer to an opaque type that you use to communicate context pointers with GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_ctx_id_t

type Gss_iov_buffer_desc

type Gss_iov_buffer_desc = Gss_iov_buffer_desc_struct

Gss_iov_buffer_desc is the structure for a vectored I/O buffer and its defined type.

See: https://developer.apple.com/documentation/GSS/gss_iov_buffer_desc

type Gss_iov_buffer_desc_struct

type Gss_iov_buffer_desc_struct struct {
	Type   OM_uint32       // The buffer type.
	Buffer Gss_buffer_desc // The buffer length and contents.

}

Gss_iov_buffer_desc_struct - The structure for a vectored I/O buffer and its defined type.

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_iov_buffer_desc_struct

type Gss_iov_buffer_t

type Gss_iov_buffer_t = uintptr

Gss_iov_buffer_t is the structure for a vectored I/O buffer and its defined type.

See: https://developer.apple.com/documentation/GSS/gss_iov_buffer_t

type Gss_krb5_cfx_keydata

type Gss_krb5_cfx_keydata struct {
	Have_acceptor_subkey OM_uint32            // The flag that indicates if the Kerberos session acceptor subkey is available.
	Ctx_key              Gss_krb5_lucid_key_t // The Kerberos session context key.
	Acceptor_subkey      Gss_krb5_lucid_key_t // The Kerberos session acceptor subkey.

}

Gss_krb5_cfx_keydata

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_krb5_cfx_keydata

type Gss_krb5_cfx_keydata_t

type Gss_krb5_cfx_keydata_t = Gss_krb5_cfx_keydata

Gss_krb5_cfx_keydata_t is the structure of a Kerberos context and acceptor-asserted key.

See: https://developer.apple.com/documentation/GSS/gss_krb5_cfx_keydata_t

type Gss_krb5_lucid_context_v1

type Gss_krb5_lucid_context_v1 struct {
	Version    OM_uint32                  // The structure version number.
	Initiate   OM_uint32                  // The flag indicating if the role is initiator.
	Endtime    OM_uint32                  // The expiration time of the context.
	Send_seq   OM_uint64                  // The send sequence number.
	Recv_seq   OM_uint64                  // The receive sequence number.
	Protocol   OM_uint32                  // The protocol to use.
	Rfc1964_kd Gss_krb5_rfc1964_keydata_t // The RFC-1964 key data.
	Cfx_kd     Gss_krb5_cfx_keydata_t     // The key data structure for Kerberos 5.

}

Gss_krb5_lucid_context_v1

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_krb5_lucid_context_v1

type Gss_krb5_lucid_context_v1_t

type Gss_krb5_lucid_context_v1_t = Gss_krb5_lucid_context_v1

Gss_krb5_lucid_context_v1_t is the structure of a Kerberos context.

See: https://developer.apple.com/documentation/GSS/gss_krb5_lucid_context_v1_t

type Gss_krb5_lucid_context_version

type Gss_krb5_lucid_context_version struct {
	Version OM_uint32 // The structure version number.

}

Gss_krb5_lucid_context_version

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_krb5_lucid_context_version

type Gss_krb5_lucid_context_version_t

type Gss_krb5_lucid_context_version_t = Gss_krb5_lucid_context_version

Gss_krb5_lucid_context_version_t is the structure for determining the returned Kerberos lucid context structure version.

See: https://developer.apple.com/documentation/GSS/gss_krb5_lucid_context_version_t

type Gss_krb5_lucid_key

type Gss_krb5_lucid_key struct {
	Type   OM_uint32      // The key encryption type.
	Length OM_uint32      // The length of the key data.
	Data   unsafe.Pointer // The actual key data.

}

Gss_krb5_lucid_key

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_krb5_lucid_key

type Gss_krb5_lucid_key_t

type Gss_krb5_lucid_key_t = Gss_krb5_lucid_key

Gss_krb5_lucid_key_t is the structure for a Kerberos encryption key.

See: https://developer.apple.com/documentation/GSS/gss_krb5_lucid_key_t

type Gss_krb5_rfc1964_keydata

type Gss_krb5_rfc1964_keydata struct {
	Sign_alg OM_uint32            // The signing algorithm.
	Seal_alg OM_uint32            // The seal/encrypt algorithm.
	Ctx_key  Gss_krb5_lucid_key_t // The context key (Kerberos session key or subkey).

}

Gss_krb5_rfc1964_keydata

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/GSS/gss_krb5_rfc1964_keydata

type Gss_krb5_rfc1964_keydata_t

type Gss_krb5_rfc1964_keydata_t = Gss_krb5_rfc1964_keydata

Gss_krb5_rfc1964_keydata_t is the structure for an RFC 1964-compliant Kerberos encryption key.

See: https://developer.apple.com/documentation/GSS/gss_krb5_rfc1964_keydata_t

type Gss_name_t

type Gss_name_t = uintptr

Gss_name_t is a pointer to an opaque type that you use to communicate name objects with GSS-API functions.

See: https://developer.apple.com/documentation/GSS/gss_name_t

type Gss_qop_t

type Gss_qop_t = uint32

Gss_qop_t is a quality of protection setting.

See: https://developer.apple.com/documentation/GSS/gss_qop_t

type Gss_status_id_t

type Gss_status_id_t = *OM_uint32

Gss_status_id_t is a pointer to a status result.

See: https://developer.apple.com/documentation/GSS/gss_status_id_t

type Gss_uint32

type Gss_uint32 = uint32

Gss_uint32 is a 32-bit unsigned integer.

See: https://developer.apple.com/documentation/GSS/gss_uint32

type OM_uint32

type OM_uint32 = uint32

OM_uint32 is a 32-bit unsigned integer.

See: https://developer.apple.com/documentation/GSS/OM_uint32

func GSSCredentialGetLifetime

func GSSCredentialGetLifetime(cred unsafe.Pointer) OM_uint32

GSSCredentialGetLifetime returns the remaining time in seconds before the credential expires.

See: https://developer.apple.com/documentation/GSS/GSSCredentialGetLifetime(_:)

func Gss_aapl_change_password

func Gss_aapl_change_password(name unsafe.Pointer, mech unsafe.Pointer, attributes corefoundation.CFDictionaryRef, err *corefoundation.CFErrorRef) OM_uint32

Gss_aapl_change_password changes the password associated with a name.

See: https://developer.apple.com/documentation/GSS/gss_aapl_change_password(_:_:_:_:)

func Gss_aapl_initial_cred

func Gss_aapl_initial_cred(desired_name unsafe.Pointer, desired_mech unsafe.Pointer, attributes corefoundation.CFDictionaryRef, output_cred_handle unsafe.Pointer, err *corefoundation.CFErrorRef) OM_uint32

Gss_aapl_initial_cred acquires a new credential using a password or certificate.

See: https://developer.apple.com/documentation/GSS/gss_aapl_initial_cred(_:_:_:_:_:)

func Gss_accept_sec_context

func Gss_accept_sec_context(minor_status *OM_uint32, context_handle unsafe.Pointer, acceptor_cred_handle unsafe.Pointer, input_token unsafe.Pointer, input_chan_bindings Gss_channel_bindings_t, src_name unsafe.Pointer, mech_type unsafe.Pointer, output_token unsafe.Pointer, ret_flags *OM_uint32, time_rec *OM_uint32, delegated_cred_handle unsafe.Pointer) OM_uint32

Gss_accept_sec_context accepts a security context initiated by a peer.

See: https://developer.apple.com/documentation/GSS/gss_accept_sec_context(_:_:_:_:_:_:_:_:_:_:_:)

func Gss_acquire_cred

func Gss_acquire_cred(minor_status *OM_uint32, desired_name unsafe.Pointer, time_req OM_uint32, desired_mechs unsafe.Pointer, cred_usage Gss_cred_usage_t, output_cred_handle unsafe.Pointer, actual_mechs unsafe.Pointer, time_rec *OM_uint32) OM_uint32

Gss_acquire_cred acquires a credential for use in establishing a security context.

See: https://developer.apple.com/documentation/GSS/gss_acquire_cred(_:_:_:_:_:_:_:_:)

func Gss_acquire_cred_with_password

func Gss_acquire_cred_with_password(minor_status *OM_uint32, desired_name unsafe.Pointer, password unsafe.Pointer, time_req OM_uint32, desired_mechs unsafe.Pointer, cred_usage Gss_cred_usage_t, output_cred_handle unsafe.Pointer, actual_mechs unsafe.Pointer, time_rec *OM_uint32) OM_uint32

Gss_acquire_cred_with_password acquires a credential for use in establishing a security context using a password.

See: https://developer.apple.com/documentation/GSS/gss_acquire_cred_with_password(_:_:_:_:_:_:_:_:_:)

func Gss_add_buffer_set_member

func Gss_add_buffer_set_member(minor_status *OM_uint32, member_buffer unsafe.Pointer, buffer_set unsafe.Pointer) OM_uint32

Gss_add_buffer_set_member copies the contents of a buffer into a buffer set.

See: https://developer.apple.com/documentation/GSS/gss_add_buffer_set_member(_:_:_:)

func Gss_add_cred

func Gss_add_cred(minor_status *OM_uint32, input_cred_handle unsafe.Pointer, desired_name unsafe.Pointer, desired_mech unsafe.Pointer, cred_usage Gss_cred_usage_t, initiator_time_req OM_uint32, acceptor_time_req OM_uint32, output_cred_handle unsafe.Pointer, actual_mechs unsafe.Pointer, initiator_time_rec *OM_uint32, acceptor_time_rec *OM_uint32) OM_uint32

Gss_add_cred adds a new credential element to an existing credential.

See: https://developer.apple.com/documentation/GSS/gss_add_cred(_:_:_:_:_:_:_:_:_:_:_:)

func Gss_add_oid_set_member

func Gss_add_oid_set_member(minor_status *OM_uint32, member_oid unsafe.Pointer, oid_set unsafe.Pointer) OM_uint32

Gss_add_oid_set_member adds an object identifier into an OID set.

See: https://developer.apple.com/documentation/GSS/gss_add_oid_set_member(_:_:_:)

func Gss_canonicalize_name

func Gss_canonicalize_name(minor_status *OM_uint32, input_name unsafe.Pointer, mech_type unsafe.Pointer, output_name unsafe.Pointer) OM_uint32

Gss_canonicalize_name converts an internal name into a mechanism name.

See: https://developer.apple.com/documentation/GSS/gss_canonicalize_name(_:_:_:_:)

func Gss_compare_name

func Gss_compare_name(minor_status *OM_uint32, name1_arg unsafe.Pointer, name2_arg unsafe.Pointer, name_equal *int32) OM_uint32

Gss_compare_name returns a flag that indicates if two names in internal name format refer to the same entity.

See: https://developer.apple.com/documentation/GSS/gss_compare_name(_:_:_:_:)

func Gss_context_time

func Gss_context_time(minor_status *OM_uint32, context_handle unsafe.Pointer, time_rec *OM_uint32) OM_uint32

Gss_context_time returns the amount of time remaining before a context expires.

See: https://developer.apple.com/documentation/GSS/gss_context_time(_:_:_:)

func Gss_create_empty_buffer_set

func Gss_create_empty_buffer_set(minor_status *OM_uint32, buffer_set unsafe.Pointer) OM_uint32

Gss_create_empty_buffer_set allocates an empty buffer set descriptor that you use to manage an array of buffers.

See: https://developer.apple.com/documentation/GSS/gss_create_empty_buffer_set(_:_:)

func Gss_create_empty_oid_set

func Gss_create_empty_oid_set(minor_status *OM_uint32, oid_set unsafe.Pointer) OM_uint32

Gss_create_empty_oid_set allocates a new, empty set to hold object identifiers.

See: https://developer.apple.com/documentation/GSS/gss_create_empty_oid_set(_:_:)

func Gss_decapsulate_token

func Gss_decapsulate_token(input_token unsafe.Pointer, oid unsafe.Pointer, output_token unsafe.Pointer) OM_uint32

Gss_decapsulate_token returns a token encapsulated in a buffer.

See: https://developer.apple.com/documentation/GSS/gss_decapsulate_token(_:_:_:)

func Gss_delete_sec_context

func Gss_delete_sec_context(minor_status *OM_uint32, context_handle unsafe.Pointer, output_token unsafe.Pointer) OM_uint32

Gss_delete_sec_context deletes a security context.

See: https://developer.apple.com/documentation/GSS/gss_delete_sec_context(_:_:_:)

func Gss_destroy_cred

func Gss_destroy_cred(min_stat *OM_uint32, cred_handle unsafe.Pointer) OM_uint32

Gss_destroy_cred purges a credential from memory.

See: https://developer.apple.com/documentation/GSS/gss_destroy_cred(_:_:)

func Gss_display_mech_attr

func Gss_display_mech_attr(minor_status *OM_uint32, mech_attr unsafe.Pointer, name unsafe.Pointer, short_desc unsafe.Pointer, long_desc unsafe.Pointer) OM_uint32

Gss_display_mech_attr returns a human-readable name and description of a mechanism attribute.

See: https://developer.apple.com/documentation/GSS/gss_display_mech_attr(_:_:_:_:_:)

func Gss_display_name

func Gss_display_name(minor_status *OM_uint32, input_name unsafe.Pointer, output_name_buffer unsafe.Pointer, output_name_type unsafe.Pointer) OM_uint32

Gss_display_name converts a name in the internal format to an octet string and the associated name type.

See: https://developer.apple.com/documentation/GSS/gss_display_name(_:_:_:_:)

func Gss_display_status

func Gss_display_status(minor_status *OM_uint32, status_value OM_uint32, status_type int32, mech_type unsafe.Pointer, message_content *OM_uint32, status_string unsafe.Pointer) OM_uint32

Gss_display_status returns a human readable string for a status code.

See: https://developer.apple.com/documentation/GSS/gss_display_status(_:_:_:_:_:_:)

func Gss_duplicate_name

func Gss_duplicate_name(minor_status *OM_uint32, src_name unsafe.Pointer, dest_name unsafe.Pointer) OM_uint32

Gss_duplicate_name returns a copy of an internal name.

See: https://developer.apple.com/documentation/GSS/gss_duplicate_name(_:_:_:)

func Gss_encapsulate_token

func Gss_encapsulate_token(input_token unsafe.Pointer, oid unsafe.Pointer, output_token unsafe.Pointer) OM_uint32

Gss_encapsulate_token returns a buffer encapsulating the given token.

See: https://developer.apple.com/documentation/GSS/gss_encapsulate_token(_:_:_:)

func Gss_export_cred

func Gss_export_cred(minor_status *OM_uint32, cred_handle unsafe.Pointer, token unsafe.Pointer) OM_uint32

Gss_export_cred exports a credential to a token.

See: https://developer.apple.com/documentation/GSS/gss_export_cred(_:_:_:)

func Gss_export_name

func Gss_export_name(minor_status *OM_uint32, input_name unsafe.Pointer, exported_name unsafe.Pointer) OM_uint32

Gss_export_name returns a mechanism name in contiguous octet format.

See: https://developer.apple.com/documentation/GSS/gss_export_name(_:_:_:)

func Gss_export_sec_context

func Gss_export_sec_context(minor_status *OM_uint32, context_handle unsafe.Pointer, interprocess_token unsafe.Pointer) OM_uint32

Gss_export_sec_context transfers a security context to another process.

See: https://developer.apple.com/documentation/GSS/gss_export_sec_context(_:_:_:)

func Gss_get_mic

func Gss_get_mic(minor_status *OM_uint32, context_handle unsafe.Pointer, qop_req Gss_qop_t, message_buffer unsafe.Pointer, message_token unsafe.Pointer) OM_uint32

Gss_get_mic returns a token that contains the MIC for a message.

See: https://developer.apple.com/documentation/GSS/gss_get_mic(_:_:_:_:_:)

func Gss_import_cred

func Gss_import_cred(minor_status *OM_uint32, token unsafe.Pointer, cred_handle unsafe.Pointer) OM_uint32

Gss_import_cred imports a credential from a token.

See: https://developer.apple.com/documentation/GSS/gss_import_cred(_:_:_:)

func Gss_import_name

func Gss_import_name(minor_status *OM_uint32, input_name_buffer unsafe.Pointer, input_name_type unsafe.Pointer, output_name unsafe.Pointer) OM_uint32

Gss_import_name converts a name in contiguous octet format to the internal name format.

See: https://developer.apple.com/documentation/GSS/gss_import_name(_:_:_:_:)

func Gss_import_sec_context

func Gss_import_sec_context(minor_status *OM_uint32, interprocess_token unsafe.Pointer, context_handle unsafe.Pointer) OM_uint32

Gss_import_sec_context imports a security context from another process.

See: https://developer.apple.com/documentation/GSS/gss_import_sec_context(_:_:_:)

func Gss_indicate_mechs

func Gss_indicate_mechs(minor_status *OM_uint32, mech_set unsafe.Pointer) OM_uint32

Gss_indicate_mechs returns the list of supported underlying security mechanisms.

See: https://developer.apple.com/documentation/GSS/gss_indicate_mechs(_:_:)

func Gss_indicate_mechs_by_attrs

func Gss_indicate_mechs_by_attrs(minor_status *OM_uint32, desired_mech_attrs unsafe.Pointer, except_mech_attrs unsafe.Pointer, critical_mech_attrs unsafe.Pointer, mechs unsafe.Pointer) OM_uint32

Gss_indicate_mechs_by_attrs returns the set of mechanisms that fulfill the given criteria.

See: https://developer.apple.com/documentation/GSS/gss_indicate_mechs_by_attrs(_:_:_:_:_:)

func Gss_init_sec_context

func Gss_init_sec_context(minor_status *OM_uint32, initiator_cred_handle unsafe.Pointer, context_handle unsafe.Pointer, target_name unsafe.Pointer, input_mech_type unsafe.Pointer, req_flags OM_uint32, time_req OM_uint32, input_chan_bindings Gss_channel_bindings_t, input_token unsafe.Pointer, actual_mech_type unsafe.Pointer, output_token unsafe.Pointer, ret_flags *OM_uint32, time_rec *OM_uint32) OM_uint32

Gss_init_sec_context initiates a security context with a peer.

See: https://developer.apple.com/documentation/GSS/gss_init_sec_context(_:_:_:_:_:_:_:_:_:_:_:_:_:)

func Gss_inquire_attrs_for_mech

func Gss_inquire_attrs_for_mech(minor_status *OM_uint32, mech unsafe.Pointer, mech_attr unsafe.Pointer, known_mech_attrs unsafe.Pointer) OM_uint32

Gss_inquire_attrs_for_mech returns the supported attributes for one or all mechanisms.

See: https://developer.apple.com/documentation/GSS/gss_inquire_attrs_for_mech(_:_:_:_:)

func Gss_inquire_context

func Gss_inquire_context(minor_status *OM_uint32, context_handle unsafe.Pointer, src_name unsafe.Pointer, targ_name unsafe.Pointer, lifetime_rec *OM_uint32, mech_type unsafe.Pointer, ctx_flags *OM_uint32, locally_initiated *int32, xopen *int32) OM_uint32

Gss_inquire_context returns information about a security context.

See: https://developer.apple.com/documentation/GSS/gss_inquire_context(_:_:_:_:_:_:_:_:_:)

func Gss_inquire_cred

func Gss_inquire_cred(minor_status *OM_uint32, cred_handle unsafe.Pointer, name_ret unsafe.Pointer, lifetime *OM_uint32, cred_usage *Gss_cred_usage_t, mechanisms unsafe.Pointer) OM_uint32

Gss_inquire_cred obtains information about a credential.

See: https://developer.apple.com/documentation/GSS/gss_inquire_cred(_:_:_:_:_:_:)

func Gss_inquire_cred_by_mech

func Gss_inquire_cred_by_mech(minor_status *OM_uint32, cred_handle unsafe.Pointer, mech_type unsafe.Pointer, cred_name unsafe.Pointer, initiator_lifetime *OM_uint32, acceptor_lifetime *OM_uint32, cred_usage *Gss_cred_usage_t) OM_uint32

Gss_inquire_cred_by_mech obtains per-mechanism information about a credential.

See: https://developer.apple.com/documentation/GSS/gss_inquire_cred_by_mech(_:_:_:_:_:_:_:)

func Gss_inquire_cred_by_oid

func Gss_inquire_cred_by_oid(minor_status *OM_uint32, cred_handle unsafe.Pointer, desired_object unsafe.Pointer, data_set unsafe.Pointer) OM_uint32

Gss_inquire_cred_by_oid inquires about a particular characteristic of a credential.

See: https://developer.apple.com/documentation/GSS/gss_inquire_cred_by_oid(_:_:_:_:)

func Gss_inquire_mech_for_saslname

func Gss_inquire_mech_for_saslname(minor_status *OM_uint32, sasl_mech_name unsafe.Pointer, mech_type unsafe.Pointer) OM_uint32

Gss_inquire_mech_for_saslname returns the GSS-API mechanism identifier for a given Simple Authentication and Security Layer (SASL) protocol name.

See: https://developer.apple.com/documentation/GSS/gss_inquire_mech_for_saslname(_:_:_:)

func Gss_inquire_mechs_for_name

func Gss_inquire_mechs_for_name(minor_status *OM_uint32, input_name unsafe.Pointer, mech_types unsafe.Pointer) OM_uint32

Gss_inquire_mechs_for_name returns a list of mechanisms that support a particular name type.

See: https://developer.apple.com/documentation/GSS/gss_inquire_mechs_for_name(_:_:_:)

func Gss_inquire_name

func Gss_inquire_name(minor_status *OM_uint32, input_name unsafe.Pointer, name_is_MN *int32, MN_mech unsafe.Pointer, attrs unsafe.Pointer) OM_uint32

Gss_inquire_name returns information about a name.

See: https://developer.apple.com/documentation/GSS/gss_inquire_name(_:_:_:_:_:)

func Gss_inquire_names_for_mech

func Gss_inquire_names_for_mech(minor_status *OM_uint32, mechanism unsafe.Pointer, name_types unsafe.Pointer) OM_uint32

Gss_inquire_names_for_mech returns a list of name types that a given mechanism supports.

See: https://developer.apple.com/documentation/GSS/gss_inquire_names_for_mech(_:_:_:)

func Gss_inquire_saslname_for_mech

func Gss_inquire_saslname_for_mech(minor_status *OM_uint32, desired_mech unsafe.Pointer, sasl_mech_name unsafe.Pointer, mech_name unsafe.Pointer, mech_description unsafe.Pointer) OM_uint32

Gss_inquire_saslname_for_mech returns the Simple Authentication and Security Layer (SASL) protocol name for a given GSS-API mechanism.

See: https://developer.apple.com/documentation/GSS/gss_inquire_saslname_for_mech(_:_:_:_:_:)

func Gss_inquire_sec_context_by_oid

func Gss_inquire_sec_context_by_oid(minor_status *OM_uint32, context_handle unsafe.Pointer, desired_object unsafe.Pointer, data_set unsafe.Pointer) OM_uint32

Gss_inquire_sec_context_by_oid returns information about a particular part of a context.

See: https://developer.apple.com/documentation/GSS/gss_inquire_sec_context_by_oid(_:_:_:_:)

func Gss_iter_creds

func Gss_iter_creds(min_stat *OM_uint32, flags OM_uint32, mech unsafe.Pointer) OM_uint32

Gss_iter_creds iterates over all credentials.

See: https://developer.apple.com/documentation/GSS/gss_iter_creds(_:_:_:_:)

func Gss_iter_creds_f

func Gss_iter_creds_f(min_stat *OM_uint32, flags OM_uint32, mech unsafe.Pointer, userctx unsafe.Pointer, useriter func(unsafe.Pointer, Gss_OID, Gss_cred_id_t)) OM_uint32

Gss_iter_creds_f iterates over all credentials with a user context.

See: https://developer.apple.com/documentation/GSS/gss_iter_creds_f(_:_:_:_:_:)

func Gss_krb5_ccache_name

func Gss_krb5_ccache_name(minor_status *OM_uint32, name string, out_name string) OM_uint32

Gss_krb5_ccache_name sets the internal Kerberos 5 credential cache name.

See: https://developer.apple.com/documentation/GSS/gss_krb5_ccache_name(_:_:_:)

func Gss_krb5_export_lucid_sec_context

func Gss_krb5_export_lucid_sec_context(minor_status *OM_uint32, context_handle unsafe.Pointer, version OM_uint32, rctx unsafe.Pointer) OM_uint32

Gss_krb5_export_lucid_sec_context returns a non-opaque version of the internal context information.

See: https://developer.apple.com/documentation/GSS/gss_krb5_export_lucid_sec_context(_:_:_:_:)

func Gss_krb5_free_lucid_sec_context

func Gss_krb5_free_lucid_sec_context(minor_status *OM_uint32, c unsafe.Pointer) OM_uint32

Gss_krb5_free_lucid_sec_context frees allocated storage associated with an exported context.

See: https://developer.apple.com/documentation/GSS/gss_krb5_free_lucid_sec_context(_:_:)

func Gss_krb5_set_allowable_enctypes

func Gss_krb5_set_allowable_enctypes(minor_status *OM_uint32, cred unsafe.Pointer, num_enctypes OM_uint32, enctypes *int32) OM_uint32

Gss_krb5_set_allowable_enctypes limits the keys that can be exported to the specified types.

See: https://developer.apple.com/documentation/GSS/gss_krb5_set_allowable_enctypes(_:_:_:_:)

func Gss_oid_to_str

func Gss_oid_to_str(minor_status *OM_uint32, oid unsafe.Pointer, oid_str unsafe.Pointer) OM_uint32

Gss_oid_to_str converts an OID object to a human-readable string.

See: https://developer.apple.com/documentation/GSS/gss_oid_to_str(_:_:_:)

func Gss_process_context_token

func Gss_process_context_token(minor_status *OM_uint32, context_handle unsafe.Pointer, token_buffer unsafe.Pointer) OM_uint32

Gss_process_context_token processes a token from a peer asynchronously.

See: https://developer.apple.com/documentation/GSS/gss_process_context_token(_:_:_:)

func Gss_pseudo_random

func Gss_pseudo_random(minor_status *OM_uint32, context unsafe.Pointer, prf_key int32, prf_in unsafe.Pointer, desired_output_len int, prf_out unsafe.Pointer) OM_uint32

Gss_pseudo_random returns a pseudo-random byte stream for keying.

See: https://developer.apple.com/documentation/GSS/gss_pseudo_random(_:_:_:_:_:_:)

func Gss_release_buffer

func Gss_release_buffer(minor_status *OM_uint32, buffer unsafe.Pointer) OM_uint32

Gss_release_buffer frees the memory associated with a single buffer descriptor.

See: https://developer.apple.com/documentation/GSS/gss_release_buffer(_:_:)

func Gss_release_buffer_set

func Gss_release_buffer_set(minor_status *OM_uint32, buffer_set unsafe.Pointer) OM_uint32

Gss_release_buffer_set frees the memory associated with a buffer set descriptor and all the buffers it contains.

See: https://developer.apple.com/documentation/GSS/gss_release_buffer_set(_:_:)

func Gss_release_cred

func Gss_release_cred(minor_status *OM_uint32, cred_handle unsafe.Pointer) OM_uint32

Gss_release_cred releases the memory of a credential.

See: https://developer.apple.com/documentation/GSS/gss_release_cred(_:_:)

func Gss_release_name

func Gss_release_name(minor_status *OM_uint32, input_name unsafe.Pointer) OM_uint32

Gss_release_name frees the resources associated with a name object.

See: https://developer.apple.com/documentation/GSS/gss_release_name(_:_:)

func Gss_release_oid_set

func Gss_release_oid_set(minor_status *OM_uint32, set unsafe.Pointer) OM_uint32

Gss_release_oid_set releases the memory associated with an OID set.

See: https://developer.apple.com/documentation/GSS/gss_release_oid_set(_:_:)

func Gss_set_cred_option

func Gss_set_cred_option(minor_status *OM_uint32, cred_handle unsafe.Pointer, object unsafe.Pointer, value unsafe.Pointer) OM_uint32

Gss_set_cred_option changes a credential option.

See: https://developer.apple.com/documentation/GSS/gss_set_cred_option(_:_:_:_:)

func Gss_set_sec_context_option

func Gss_set_sec_context_option(minor_status *OM_uint32, context_handle unsafe.Pointer, object unsafe.Pointer, value unsafe.Pointer) OM_uint32

Gss_set_sec_context_option sets an option on a context.

See: https://developer.apple.com/documentation/GSS/gss_set_sec_context_option(_:_:_:_:)

func Gss_test_oid_set_member

func Gss_test_oid_set_member(minor_status *OM_uint32, member unsafe.Pointer, set unsafe.Pointer, present *int32) OM_uint32

Gss_test_oid_set_member returns a flag that indicates if an OID is present in an OID set.

See: https://developer.apple.com/documentation/GSS/gss_test_oid_set_member(_:_:_:_:)

func Gss_unwrap

func Gss_unwrap(minor_status *OM_uint32, context_handle unsafe.Pointer, input_message_buffer unsafe.Pointer, output_message_buffer unsafe.Pointer, conf_state *int32, qop_state *Gss_qop_t) OM_uint32

Gss_unwrap returns the original version of a secure message by optionally decrypting it and then extracting and verifying the attached MIC.

See: https://developer.apple.com/documentation/GSS/gss_unwrap(_:_:_:_:_:_:)

func Gss_verify_mic

func Gss_verify_mic(minor_status *OM_uint32, context_handle unsafe.Pointer, message_buffer unsafe.Pointer, token_buffer unsafe.Pointer, qop_state *Gss_qop_t) OM_uint32

Gss_verify_mic returns an indication of whether the integrity of a message is intact, given its MIC token.

See: https://developer.apple.com/documentation/GSS/gss_verify_mic(_:_:_:_:_:)

func Gss_wrap

func Gss_wrap(minor_status *OM_uint32, context_handle unsafe.Pointer, conf_req_flag int32, qop_req Gss_qop_t, input_message_buffer unsafe.Pointer, conf_state *int32, output_message_buffer unsafe.Pointer) OM_uint32

Gss_wrap returns a secure message created by calculating and attaching a MIC to the input message, and then optionally encrypting it.

See: https://developer.apple.com/documentation/GSS/gss_wrap(_:_:_:_:_:_:_:)

func Gss_wrap_size_limit

func Gss_wrap_size_limit(minor_status *OM_uint32, context_handle unsafe.Pointer, conf_req_flag int32, qop_req Gss_qop_t, req_output_size OM_uint32, max_input_size *OM_uint32) OM_uint32

Gss_wrap_size_limit returns the largest allowable wrap size for a given set of constraints.

See: https://developer.apple.com/documentation/GSS/gss_wrap_size_limit(_:_:_:_:_:_:)

func Gsskrb5_extract_authz_data_from_sec_context

func Gsskrb5_extract_authz_data_from_sec_context(minor_status *OM_uint32, context_handle unsafe.Pointer, ad_type int32, ad_data unsafe.Pointer) OM_uint32

Gsskrb5_extract_authz_data_from_sec_context extracts Kerberos authorization data stored within the context.

See: https://developer.apple.com/documentation/GSS/gsskrb5_extract_authz_data_from_sec_context(_:_:_:_:)

func Gsskrb5_register_acceptor_identity

func Gsskrb5_register_acceptor_identity(identity string) OM_uint32

Gsskrb5_register_acceptor_identity sets the Kerberos 5 file-based key that the acceptor will use.

See: https://developer.apple.com/documentation/GSS/gsskrb5_register_acceptor_identity(_:)

func Krb5_gss_register_acceptor_identity

func Krb5_gss_register_acceptor_identity(identity string) OM_uint32

Krb5_gss_register_acceptor_identity sets the Kerberos 5 file-based key that the acceptor will use.

See: https://developer.apple.com/documentation/GSS/krb5_gss_register_acceptor_identity(_:)

type OM_uint64

type OM_uint64 = uint64

OM_uint64 is a 64-bit unsigned integer.

See: https://developer.apple.com/documentation/GSS/OM_uint64

type OmUint32

type OmUint32 = OM_uint32

OmUint32 is a Go-name alias for OM_uint32.

type OmUint64

type OmUint64 = OM_uint64

OmUint64 is a Go-name alias for OM_uint64.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL