summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/cccopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/ccache/cccopy.c')
-rw-r--r--src/lib/krb5/ccache/cccopy.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/lib/krb5/ccache/cccopy.c b/src/lib/krb5/ccache/cccopy.c
index a9a45b501..36b3f4270 100644
--- a/src/lib/krb5/ccache/cccopy.c
+++ b/src/lib/krb5/ccache/cccopy.c
@@ -1,3 +1,4 @@
+/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "k5-int.h"
krb5_error_code KRB5_CALLCONV
@@ -8,29 +9,29 @@ krb5_cc_copy_creds(krb5_context context, krb5_ccache incc, krb5_ccache outcc)
krb5_cc_cursor cur = 0;
krb5_creds creds;
- flags = 0; /* turns off OPENCLOSE mode */
+ flags = 0; /* turns off OPENCLOSE mode */
if ((code = krb5_cc_set_flags(context, incc, flags)))
- return(code);
+ return(code);
/* the code for this will open the file for reading only, which
is not what I had in mind. So I won't turn off OPENCLOSE
for the output ccache */
#if 0
if ((code = krb5_cc_set_flags(context, outcc, flags)))
- return(code);
+ return(code);
#endif
if ((code = krb5_cc_start_seq_get(context, incc, &cur)))
- goto cleanup;
+ goto cleanup;
while (!(code = krb5_cc_next_cred(context, incc, &cur, &creds))) {
- code = krb5_cc_store_cred(context, outcc, &creds);
- krb5_free_cred_contents(context, &creds);
- if (code)
- goto cleanup;
+ code = krb5_cc_store_cred(context, outcc, &creds);
+ krb5_free_cred_contents(context, &creds);
+ if (code)
+ goto cleanup;
}
if (code != KRB5_CC_END)
- goto cleanup;
+ goto cleanup;
code = krb5_cc_end_seq_get(context, incc, &cur);
cur = 0;
@@ -43,19 +44,19 @@ cleanup:
flags = KRB5_TC_OPENCLOSE;
/* If set then we are in an error pathway */
- if (cur)
- krb5_cc_end_seq_get(context, incc, &cur);
+ if (cur)
+ krb5_cc_end_seq_get(context, incc, &cur);
if (code)
- krb5_cc_set_flags(context, incc, flags);
+ krb5_cc_set_flags(context, incc, flags);
else
- code = krb5_cc_set_flags(context, incc, flags);
+ code = krb5_cc_set_flags(context, incc, flags);
#if 0
if (code)
- krb5_cc_set_flags(context, outcc, flags);
+ krb5_cc_set_flags(context, outcc, flags);
else
- code = krb5_cc_set_flags(context, outcc, flags);
+ code = krb5_cc_set_flags(context, outcc, flags);
#endif
return(code);