aboutsummaryrefslogtreecommitdiffstats
path: root/gssapi.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-09-25 16:37:35 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-09-25 17:37:10 +0200
commitcbd935789d1cda54867fbefab2d27c65acd0a5dc (patch)
tree9470343301bf179906869cbf7672ee5f67ccf0c9 /gssapi.c
parent8be67ed62c5f40933fc96cedd39e66d2fe972785 (diff)
downloadfetchmail-cbd935789d1cda54867fbefab2d27c65acd0a5dc.tar.gz
fetchmail-cbd935789d1cda54867fbefab2d27c65acd0a5dc.tar.bz2
fetchmail-cbd935789d1cda54867fbefab2d27c65acd0a5dc.zip
Reindent gssapi.c a bit.
Diffstat (limited to 'gssapi.c')
-rw-r--r--gssapi.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/gssapi.c b/gssapi.c
index 39e4fa73..48f690c4 100644
--- a/gssapi.c
+++ b/gssapi.c
@@ -160,21 +160,22 @@ int do_gssauth(int sock, const char *command, const char *service,
if (outlevel >= O_VERBOSE)
report(stdout, GT_("Sending credentials\n"));
do {
- send_token.length = 0;
+ send_token.length = 0;
send_token.value = NULL;
- maj_stat = gss_init_sec_context(&min_stat,
- GSS_C_NO_CREDENTIAL,
- &context,
- target_name,
- GSS_C_NO_OID,
- GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG,
- 0,
- GSS_C_NO_CHANNEL_BINDINGS,
- sec_token,
- NULL,
- &send_token,
- NULL,
+ maj_stat = gss_init_sec_context(&min_stat,
+ GSS_C_NO_CREDENTIAL,
+ &context,
+ target_name,
+ GSS_C_NO_OID,
+ GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG,
+ 0,
+ GSS_C_NO_CHANNEL_BINDINGS,
+ sec_token,
+ NULL,
+ &send_token,
+ NULL,
NULL);
+
if (maj_stat!=GSS_S_COMPLETE && maj_stat!=GSS_S_CONTINUE_NEEDED) {
decode_status("gss_init_sec_context", maj_stat, min_stat);
(void)gss_release_name(&min_stat, &target_name);
@@ -220,7 +221,7 @@ int do_gssauth(int sock, const char *command, const char *service,
request_buf.length = 0;
request_buf.value = buf2;
- maj_stat = gss_unwrap(&min_stat, context,
+ maj_stat = gss_unwrap(&min_stat, context,
&request_buf, &send_token, &cflags, &quality);
if (maj_stat != GSS_S_COMPLETE) {
decode_status("gss_unwrap", maj_stat, min_stat);