summaryrefslogtreecommitdiffstats
path: root/src/tests/gssapi
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
committerTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
commit02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b (patch)
tree61b9147863cd8be3eff63903dc36cae168254bd5 /src/tests/gssapi
parent162ab371748cba0cc6f172419bd6e71fa04bb878 (diff)
downloadkrb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.gz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.xz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.zip
make mark-cstyle
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/gssapi')
-rw-r--r--src/tests/gssapi/t_imp_name.c17
-rw-r--r--src/tests/gssapi/t_namingexts.c1
-rw-r--r--src/tests/gssapi/t_s4u.c1
3 files changed, 8 insertions, 11 deletions
diff --git a/src/tests/gssapi/t_imp_name.c b/src/tests/gssapi/t_imp_name.c
index b7001b2161..e64a1f5593 100644
--- a/src/tests/gssapi/t_imp_name.c
+++ b/src/tests/gssapi/t_imp_name.c
@@ -6,7 +6,7 @@
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
- *
+ *
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
@@ -23,7 +23,7 @@
*
* Simple test program for testing how GSSAPI import name works. (May
* be made into a more full-fledged test program later.)
- *
+ *
*/
#include <unistd.h>
@@ -71,7 +71,7 @@ static int test_import_name(name)
display_status("parsing name", maj_stat, min_stat);
return -1;
}
-
+
maj_stat = gss_display_name(&min_stat, gss_name, &buffer_name,
&name_oid);
if (maj_stat != GSS_S_COMPLETE) {
@@ -99,8 +99,8 @@ static void display_buffer(buffer)
gss_buffer_desc buffer;
{
char *namebuf;
-
- namebuf = malloc(buffer.length+1);
+
+ namebuf = malloc(buffer.length+1);
if (!namebuf) {
fprintf(stderr, "display_buffer: couldn't allocate buffer!\n");
exit(1);
@@ -132,7 +132,7 @@ static void display_status_1(m, code, type)
#else /* GSSAPI_V2 */
int msg_ctx;
#endif /* GSSAPI_V2 */
-
+
msg_ctx = 0;
while (1) {
(void) gss_display_status(&min_stat, code,
@@ -140,11 +140,10 @@ static void display_status_1(m, code, type)
&msg_ctx, &msg);
if (display_file)
fprintf(display_file, "GSS-API error %s: %s\n", m,
- (char *)msg.value);
+ (char *)msg.value);
(void) gss_release_buffer(&min_stat, &msg);
-
+
if (!msg_ctx)
break;
}
}
-
diff --git a/src/tests/gssapi/t_namingexts.c b/src/tests/gssapi/t_namingexts.c
index 3dae0a1c70..1f771c44b5 100644
--- a/src/tests/gssapi/t_namingexts.c
+++ b/src/tests/gssapi/t_namingexts.c
@@ -485,4 +485,3 @@ out:
return GSS_ERROR(major) ? 1 : 0;
}
-
diff --git a/src/tests/gssapi/t_s4u.c b/src/tests/gssapi/t_s4u.c
index 394313a684..08cf84f185 100644
--- a/src/tests/gssapi/t_s4u.c
+++ b/src/tests/gssapi/t_s4u.c
@@ -548,4 +548,3 @@ out:
return GSS_ERROR(major) ? 1 : 0;
}
-