/* gss-api prototypes; note that these are somewhat simplified versions of
* the prototypes specified in RFC 2744. */
-u32 gss_import_sec_context(
- struct xdr_netobj *input_token,
+int gss_import_sec_context(
+ const void* input_token,
+ size_t bufsize,
struct gss_api_mech *mech,
struct gss_ctx **ctx_id);
u32 gss_get_mic(
u32 gss_delete_sec_context(
struct gss_ctx **ctx_id);
-struct gss_api_mech * gss_mech_get_by_name(char *name);
-struct gss_api_mech * gss_mech_get_by_pseudoflavor(u32 pseudoflavor);
u32 gss_pseudoflavor_to_service(struct gss_api_mech *, u32 pseudoflavor);
char *gss_service_to_auth_domain_name(struct gss_api_mech *, u32 service);
/* and must provide the following operations: */
struct gss_api_ops {
- u32 (*gss_import_sec_context)(
- struct xdr_netobj *input_token,
+ int (*gss_import_sec_context)(
+ const void *input_token,
+ size_t bufsize,
struct gss_ctx *ctx_id);
u32 (*gss_get_mic)(
struct gss_ctx *ctx_id,
struct gss_api_mech * gss_mech_get_by_OID(struct xdr_netobj *);
/* Returns a reference to a mechanism, given a name like "krb5" etc. */
-struct gss_api_mech *gss_mech_get_by_name(char *);
+struct gss_api_mech *gss_mech_get_by_name(const char *);
/* Similar, but get by pseudoflavor. */
struct gss_api_mech *gss_mech_get_by_pseudoflavor(u32);