diff options
| author | Simo Sorce <simo@redhat.com> | 2012-03-22 01:18:19 -0400 |
|---|---|---|
| committer | Simo Sorce <simo@redhat.com> | 2012-04-15 15:00:49 -0400 |
| commit | 9c6e6122208d1ebfc0d1edbb79dd3ae71e368c60 (patch) | |
| tree | f14835e6de5e9cbd178e4641eed066c8052ef62c /proxy/src/gp_export.h | |
| parent | 781d0f14cc295cee0973337f81fa7d2598ff8359 (diff) | |
| download | gss-proxy-9c6e6122208d1ebfc0d1edbb79dd3ae71e368c60.tar.gz gss-proxy-9c6e6122208d1ebfc0d1edbb79dd3ae71e368c60.tar.xz gss-proxy-9c6e6122208d1ebfc0d1edbb79dd3ae71e368c60.zip | |
Move ctx_id function and add export type option
Move the function to export a context to gssx_ctx or import into gp_export.c
Add function to check for exported_context_type option in call_ctx
Diffstat (limited to 'proxy/src/gp_export.h')
| -rw-r--r-- | proxy/src/gp_export.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/proxy/src/gp_export.h b/proxy/src/gp_export.h index c629dd2..bef285a 100644 --- a/proxy/src/gp_export.h +++ b/proxy/src/gp_export.h @@ -34,4 +34,17 @@ uint32_t gp_export_gssx_cred(uint32_t *min, int gp_import_gssx_cred(octet_string *in, gss_cred_id_t *out); int gp_find_cred(gssx_cred *cred, gss_cred_id_t *out); +int gp_get_exported_context_type(struct gssx_call_ctx *ctx); +uint32_t gp_export_ctx_id_to_gssx(uint32_t *min, int type, + 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); + +/* Compat fns */ +#define gp_conv_ctx_id_to_gssx(min, in, out) \ + gp_export_ctx_id_to_gssx(min, 0, in, out) +static int32_t dummy_min; +#define gp_conv_gssx_to_ctx_id(in, out) \ + (uint32_t)gp_import_gssx_to_ctx_id(&dummy_min, 0, in, out) + #endif /* _GSS_EXPORT_H_ */ |
