summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-04-26 12:50:03 -0400
committerSimo Sorce <idra@samba.org>2012-05-04 16:51:28 +0200
commit07953e19fc01ee424f0ae5e65799ea7c029082f2 (patch)
tree56c9c3193c20e0267af79d3e3b8dd02d0ab96298 /source4
parent57dc8aa1b21d1771ed8533100be122c8a7dac4ce (diff)
downloadsamba-07953e19fc01ee424f0ae5e65799ea7c029082f2.tar.gz
samba-07953e19fc01ee424f0ae5e65799ea7c029082f2.tar.bz2
samba-07953e19fc01ee424f0ae5e65799ea7c029082f2.zip
keytab_copy: Fix style, whitespaces
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/kerberos/keytab_copy.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/source4/auth/kerberos/keytab_copy.c b/source4/auth/kerberos/keytab_copy.c
index d823e0219d..657e4ef805 100644
--- a/source4/auth/kerberos/keytab_copy.c
+++ b/source4/auth/kerberos/keytab_copy.c
@@ -47,8 +47,10 @@ compare_keyblock(const krb5_keyblock *a, const krb5_keyblock *b)
return TRUE;
}
-static krb5_error_code copy_one_entry(krb5_context context,
- krb5_keytab src_keytab, krb5_keytab dst_keytab, krb5_keytab_entry entry)
+static krb5_error_code copy_one_entry(krb5_context context,
+ krb5_keytab src_keytab,
+ krb5_keytab dst_keytab,
+ krb5_keytab_entry entry)
{
krb5_error_code ret;
krb5_keytab_entry dummy;
@@ -93,7 +95,7 @@ static krb5_error_code copy_one_entry(krb5_context context,
free(name_str);
free(etype_str);
return ret;
- }
+ }
ret = krb5_kt_add_entry (context, dst_keytab, &entry);
krb5_kt_free_entry (context, &entry);
if (ret) {
@@ -108,7 +110,7 @@ static krb5_error_code copy_one_entry(krb5_context context,
return ret;
}
-krb5_error_code kt_copy (krb5_context context, const char *from, const char *to)
+krb5_error_code kt_copy(krb5_context context, const char *from, const char *to)
{
krb5_error_code ret;
krb5_keytab src_keytab, dst_keytab;
@@ -154,8 +156,12 @@ krb5_error_code kt_copy (krb5_context context, const char *from, const char *to)
return ret;
}
-krb5_error_code kt_copy_one_principal (krb5_context context, const char *from, const char *to,
- const char *principal, krb5_kvno kvno, krb5_enctype *enctypes)
+krb5_error_code kt_copy_one_principal(krb5_context context,
+ const char *from,
+ const char *to,
+ const char *principal,
+ krb5_kvno kvno,
+ krb5_enctype *enctypes)
{
krb5_error_code ret;
krb5_keytab src_keytab, dst_keytab;
@@ -205,10 +211,13 @@ krb5_error_code kt_copy_one_principal (krb5_context context, const char *from, c
char *princ_string;
int ret2 = krb5_unparse_name (context, princ, &princ_string);
if (ret2) {
- krb5_set_error_message(context, ret, "failed to fetch principal %s", princ_string);
+ krb5_set_error_message(context, ret,
+ "failed to fetch principal %s",
+ princ_string);
}
} else {
- /* Not finding an enc type is not an error, as long as we copied one for the principal */
+ /* Not finding an enc type is not an error,
+ * as long as we copied one for the principal */
ret = 0;
}
}