forked from gssapi/gssproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gp_export.h
30 lines (23 loc) · 1.23 KB
/
gp_export.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */
#ifndef _GSS_EXPORT_H_
#define _GSS_EXPORT_H_
#include <gssapi/gssapi.h>
#include "rpcgen/gss_proxy.h"
struct gp_call_ctx;
uint32_t gp_export_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall,
gss_cred_id_t *in, gssx_cred *out);
uint32_t gp_import_gssx_cred(uint32_t *min, struct gp_call_ctx *gpcall,
gssx_cred *cred, gss_cred_id_t *out);
int gp_get_exported_context_type(struct gssx_call_ctx *ctx);
int gp_get_continue_needed_type(void);
uint32_t gp_export_ctx_id_to_gssx(uint32_t *min, int type, gss_OID mech,
gss_ctx_id_t *in, gssx_ctx *out);
uint32_t gp_import_gssx_to_ctx_id(uint32_t *min, int type,
gssx_ctx *in, gss_ctx_id_t *out);
int gp_get_export_creds_type(struct gssx_call_ctx *ctx);
uint32_t gp_export_creds_to_gssx_options(uint32_t *min, int type,
gss_name_t src_name,
gss_const_OID mech_type,
unsigned int *opt_num,
gssx_option **opt_array);
#endif /* _GSS_EXPORT_H_ */