diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-06-10 08:16:06 -0700 |
---|---|---|
committer | Julien Chaffraix <julien.chaffraix@gmail.com> | 2011-07-12 07:06:25 -0700 |
commit | 20485a48858ea35351ca69060f56353eace0521c (patch) | |
tree | 72331e802c6a61e7b768479af7e94887fd0c11c0 /lib/socks_gssapi.c | |
parent | 6488e03f4421a039d0882561e8f96b2ae16ed7c4 (diff) | |
download | curl-20485a48858ea35351ca69060f56353eace0521c.tar.gz |
Added Curl_gss_init_sec_context.
This function wraps our calls to gss_init_sec_context so that we
have a unified way to talk to GSSAPI.
Diffstat (limited to 'lib/socks_gssapi.c')
-rw-r--r-- | lib/socks_gssapi.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/socks_gssapi.c b/lib/socks_gssapi.c index 653306cce..e91b572e3 100644 --- a/lib/socks_gssapi.c +++ b/lib/socks_gssapi.c @@ -37,6 +37,7 @@ #include <stdlib.h> #endif +#include "gssapi.h" #include "urldata.h" #include "sendf.h" #include "connect.h" @@ -183,19 +184,19 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex, /* As long as we need to keep sending some context info, and there's no */ /* errors, keep sending it... */ for(;;) { - gss_major_status = gss_init_sec_context(&gss_minor_status, - GSS_C_NO_CREDENTIAL, - &gss_context, server, - GSS_C_NULL_OID, - GSS_C_MUTUAL_FLAG | - GSS_C_REPLAY_FLAG, - 0, - NULL, - gss_token, - NULL, - &gss_send_token, - &gss_ret_flags, - NULL); + gss_major_status = Curl_gss_init_sec_context(&gss_minor_status, + GSS_C_NO_CREDENTIAL, + &gss_context, server, + GSS_C_NULL_OID, + GSS_C_MUTUAL_FLAG | + GSS_C_REPLAY_FLAG, + 0, + NULL, + gss_token, + NULL, + &gss_send_token, + &gss_ret_flags, + NULL); if(gss_token != GSS_C_NO_BUFFER) gss_release_buffer(&gss_status, &gss_recv_token); |