summaryrefslogtreecommitdiffstats
path: root/include/gssapi
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-05-07 13:53:12 +0000
committerdfr <dfr@FreeBSD.org>2008-05-07 13:53:12 +0000
commitbe0348cb75cae58cd1683f6fdbff884cb9bc405b (patch)
tree1338a6c0e5d3e7c3b0da720ac15cd79fc72c6b5a /include/gssapi
parent52bf09d8197dd1ec84e1ab72684f2058f0eae9e1 (diff)
downloadFreeBSD-src-be0348cb75cae58cd1683f6fdbff884cb9bc405b.zip
FreeBSD-src-be0348cb75cae58cd1683f6fdbff884cb9bc405b.tar.gz
Fix conflicts after heimdal-1.1 import and add build infrastructure. Import
all non-style changes made by heimdal to our own libgssapi.
Diffstat (limited to 'include/gssapi')
-rw-r--r--include/gssapi/gssapi.h107
1 files changed, 94 insertions, 13 deletions
diff --git a/include/gssapi/gssapi.h b/include/gssapi/gssapi.h
index 7509b04..84ba83a 100644
--- a/include/gssapi/gssapi.h
+++ b/include/gssapi/gssapi.h
@@ -41,6 +41,11 @@
*/
#include <stdint.h>
+#ifndef _SSIZE_T_DECLARED
+typedef __ssize_t ssize_t;
+#define _SSIZE_T_DECLARED
+#endif
+
#if 0
/*
* If the platform supports the xom.h header file, it should be
@@ -732,25 +737,101 @@ OM_uint32 gss_unseal
);
/*
- * kerberos mechanism specific functions
+ * Other extensions and helper functions.
*/
-struct krb5_ccache_data;
-#define GSS_C_KRB5_COMPAT_DES3_MIC 1
-OM_uint32 gsskrb5_register_acceptor_identity
- (const char * /* identity */
+int gss_oid_equal
+ (const gss_OID, /* first OID to compare */
+ const gss_OID /* second OID to compare */
+ );
+
+OM_uint32 gss_release_oid
+ (OM_uint32 *, /* minor status */
+ gss_OID * /* oid to free */
+ );
+
+OM_uint32 gss_decapsulate_token
+ (const gss_buffer_t, /* mechanism independent token */
+ gss_OID, /* desired mechanism */
+ gss_buffer_t /* decapsulated mechanism dependant token */
+ );
+
+OM_uint32 gss_encapsulate_token
+ (const gss_buffer_t, /* mechanism dependant token */
+ gss_OID, /* desired mechanism */
+ gss_buffer_t /* encapsulated mechanism independent token */
+ );
+
+OM_uint32 gss_duplicate_oid
+ (OM_uint32 *, /* minor status */
+ const gss_OID, /* oid to copy */
+ gss_OID * /* result */
+ );
+
+OM_uint32 gss_oid_to_str
+ (OM_uint32 *, /* minor status */
+ gss_OID, /* oid to convert */
+ gss_buffer_t /* buffer to contain string */
+ );
+
+typedef struct gss_buffer_set_desc_struct {
+ size_t count;
+ gss_buffer_desc *elements;
+} gss_buffer_set_desc, *gss_buffer_set_t;
+
+#define GSS_C_NO_BUFFER_SET ((gss_buffer_set_t) 0)
+
+OM_uint32 gss_create_empty_buffer_set
+ (OM_uint32 *, /* minor status */
+ gss_buffer_set_t * /* location for new buffer set */
+ );
+
+OM_uint32 gss_add_buffer_set_member
+ (OM_uint32 *, /* minor status */
+ gss_buffer_t, /* buffer to add */
+ gss_buffer_set_t * /* set to add to */
+ );
+
+OM_uint32 gss_release_buffer_set
+ (OM_uint32 *, /* minor status */
+ gss_buffer_set_t * /* set to release */
+ );
+
+OM_uint32 gss_inquire_sec_context_by_oid
+ (OM_uint32 *, /* minor_status */
+ const gss_ctx_id_t, /* context_handle */
+ const gss_OID, /* desired_object */
+ gss_buffer_set_t * /* result */
+ );
+
+OM_uint32 gss_inquire_cred_by_oid
+ (OM_uint32 *, /* minor_status */
+ const gss_cred_id_t, /* cred_handle */
+ const gss_OID, /* desired_object */
+ gss_buffer_set_t * /* result */
+ );
+
+OM_uint32 gss_set_sec_context_option
+ (OM_uint32 *, /* minor status */
+ gss_ctx_id_t *, /* context */
+ const gss_OID, /* option to set */
+ const gss_buffer_t /* option value */
);
-OM_uint32 gss_krb5_copy_ccache
- (OM_uint32 *, /* minor_status */
- gss_cred_id_t, /* cred_handle */
- struct krb5_ccache_data * /* out */
+OM_uint32 gss_set_cred_option
+ (OM_uint32 *, /* minor status */
+ gss_cred_id_t *, /* cred */
+ const gss_OID, /* option to set */
+ const gss_buffer_t /* option value */
);
-OM_uint32 gss_krb5_compat_des3_mic
- (OM_uint32 *, /* minor_status */
- gss_ctx_id_t, /* context_handle */
- int /* flag */
+OM_uint32 gss_pseudo_random
+ (OM_uint32 *, /* minor status */
+ gss_ctx_id_t, /* context handle */
+ int prf_key, /* XXX */
+ const gss_buffer_t, /* data to seed generator */
+ ssize_t, /* amount of data required */
+ gss_buffer_t /* buffer for result */
);
#endif /* _GSSAPI_GSSAPI_H_ */
OpenPOWER on IntegriCloud