diff options
author | Simo Sorce <simo@redhat.com> | 2012-05-31 18:52:14 -0400 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2012-06-26 14:44:44 +0200 |
commit | 3570faac70bbb656d7616c975e9f5b1422b6b7c9 (patch) | |
tree | adba970aa617d2fb8444bb330fc04a23f0c46614 /proxy/src | |
parent | a94f72cf10a5cb3daf89a790d532e9344f26a96e (diff) | |
download | gss-proxy-3570faac70bbb656d7616c975e9f5b1422b6b7c9.tar.gz gss-proxy-3570faac70bbb656d7616c975e9f5b1422b6b7c9.tar.xz gss-proxy-3570faac70bbb656d7616c975e9f5b1422b6b7c9.zip |
Implement accept sec context mechglue wrappers
Diffstat (limited to 'proxy/src')
-rw-r--r-- | proxy/src/mechglue/gpp_accept_sec_context.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/proxy/src/mechglue/gpp_accept_sec_context.c b/proxy/src/mechglue/gpp_accept_sec_context.c new file mode 100644 index 0000000..47f264e --- /dev/null +++ b/proxy/src/mechglue/gpp_accept_sec_context.c @@ -0,0 +1,56 @@ +/* + GSS-PROXY + + Copyright (C) 2012 Red Hat, Inc. + Copyright (C) 2012 Simo Sorce <simo.sorce@redhat.com> + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. +*/ + +#include "gss_plugin.h" + +OM_uint32 gssi_accept_sec_context(OM_uint32 *minor_status, + gss_ctx_id_t *context_handle, + gss_cred_id_t acceptor_cred_handle, + gss_buffer_t input_token_buffer, + gss_channel_bindings_t input_chan_bindings, + gss_name_t *src_name, + gss_OID *mech_type, + gss_buffer_t output_token, + OM_uint32 *ret_flags, + OM_uint32 *time_rec, + gss_cred_id_t *delegated_cred_handle) +{ + OM_uint32 maj, min; + + maj = gpm_accept_sec_context(&min, + context_handle, + acceptor_cred_handle, + input_token_buffer, + input_chan_bindings, + src_name, + mech_type, + output_token, + ret_flags, + time_rec, + delegated_cred_handle); + + *minor_status = gpm_map_error(min); + return maj; +} |