remove trailing whitespace
This commit is contained in:
@@ -327,7 +327,7 @@ build_context(struct client *ipeer, struct client *apeer,
|
||||
krb5_data_zero(&itoken);
|
||||
|
||||
while (!iDone || !aDone) {
|
||||
|
||||
|
||||
if (iDone) {
|
||||
warnx("iPeer already done, aPeer want extra rtt");
|
||||
val = GSMERR_ERROR;
|
||||
@@ -405,7 +405,7 @@ build_context(struct client *ipeer, struct client *apeer,
|
||||
out:
|
||||
return val;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
test_mic(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2)
|
||||
{
|
||||
@@ -540,17 +540,17 @@ test_token(struct client *c1, int32_t hc1, struct client *c2, int32_t hc2, int w
|
||||
if (val) return val;
|
||||
val = test_wrap_ext(c2, hc2, c1, hc1, 1, 0);
|
||||
if (val) return val;
|
||||
|
||||
|
||||
val = test_wrap_ext(c1, hc1, c2, hc2, 1, 1);
|
||||
if (val) return val;
|
||||
val = test_wrap_ext(c2, hc2, c1, hc1, 1, 1);
|
||||
if (val) return val;
|
||||
|
||||
|
||||
val = test_wrap_ext(c1, hc1, c2, hc2, 0, 0);
|
||||
if (val) return val;
|
||||
val = test_wrap_ext(c2, hc2, c1, hc1, 0, 0);
|
||||
if (val) return val;
|
||||
|
||||
|
||||
val = test_wrap_ext(c1, hc1, c2, hc2, 0, 1);
|
||||
if (val) return val;
|
||||
val = test_wrap_ext(c2, hc2, c1, hc1, 0, 1);
|
||||
@@ -780,7 +780,7 @@ main(int argc, char **argv)
|
||||
if (password == NULL)
|
||||
errx(1, "password missing from %s", user);
|
||||
*password++ = 0;
|
||||
|
||||
|
||||
if (slaves.num_strings == 0)
|
||||
errx(1, "no principals");
|
||||
|
||||
@@ -834,7 +834,7 @@ main(int argc, char **argv)
|
||||
int32_t hCred, val, delegCred;
|
||||
int32_t clientC, serverC;
|
||||
struct client *c = clients[i];
|
||||
|
||||
|
||||
if (c->target_name == NULL)
|
||||
continue;
|
||||
|
||||
@@ -893,18 +893,18 @@ main(int argc, char **argv)
|
||||
int32_t hCred, val, delegCred = 0;
|
||||
int32_t clientC = 0, serverC = 0;
|
||||
struct client *client, *server;
|
||||
|
||||
|
||||
p = list[i];
|
||||
|
||||
|
||||
client = get_client(p[0]);
|
||||
|
||||
|
||||
val = acquire_cred(client, user, password, 1, &hCred);
|
||||
if (val != GSMERR_OK)
|
||||
errx(1, "failed to acquire_cred: %d", (int)val);
|
||||
|
||||
for (j = 1; j < num_clients + 1; j++) {
|
||||
server = get_client(p[j % num_clients]);
|
||||
|
||||
|
||||
if (server->target_name == NULL)
|
||||
break;
|
||||
|
||||
@@ -921,11 +921,11 @@ main(int argc, char **argv)
|
||||
warnx("build_context failed: %d", (int)val);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
val = test_token(client, clientC, server, serverC, wrap_ext);
|
||||
if (val)
|
||||
break;
|
||||
|
||||
|
||||
toast_resource(client, clientC);
|
||||
toast_resource(server, serverC);
|
||||
if (!delegCred) {
|
||||
|
@@ -229,7 +229,7 @@ acquire_cred(struct client *c,
|
||||
"krb5_get_init_creds failed: %d", ret);
|
||||
return convert_krb5_to_gsm(ret);
|
||||
}
|
||||
|
||||
|
||||
ret = krb5_cc_new_unique(context, "MEMORY", NULL, &id);
|
||||
if (ret)
|
||||
krb5_err (context, 1, ret, "krb5_cc_initialize");
|
||||
@@ -358,7 +358,7 @@ HandleOP(InitContext)
|
||||
if (ctx)
|
||||
krb5_errx(context, 1, "initcreds, context not NULL, but first req");
|
||||
}
|
||||
|
||||
|
||||
if ((flags & GSS_C_DELEG_FLAG) != 0)
|
||||
logmessage(c, __FILE__, __LINE__, 0, "init_sec_context delegating");
|
||||
if ((flags & GSS_C_DCE_STYLE) != 0)
|
||||
@@ -484,7 +484,7 @@ HandleOP(AcceptContext)
|
||||
gss_release_cred(&min_stat, &deleg_cred);
|
||||
deleg_hcred = 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
gsm_error = convert_gss_to_gsm(maj_stat);
|
||||
|
||||
@@ -799,7 +799,7 @@ HandleOP(Unwrap)
|
||||
|
||||
if (maj_stat != GSS_S_COMPLETE)
|
||||
errx(1, "gss_unwrap failed: %d/%d", maj_stat, min_stat);
|
||||
|
||||
|
||||
krb5_data_free(&token);
|
||||
if (maj_stat == GSS_S_COMPLETE) {
|
||||
token.data = output_token.value;
|
||||
@@ -1013,7 +1013,7 @@ HandleOP(UnwrapExt)
|
||||
|
||||
if (maj_stat != GSS_S_COMPLETE)
|
||||
errx(1, "gss_unwrap failed: %d/%d", maj_stat, min_stat);
|
||||
|
||||
|
||||
if (maj_stat == GSS_S_COMPLETE) {
|
||||
token.data = iov[1].buffer.value;
|
||||
token.length = iov[1].buffer.length;
|
||||
@@ -1100,7 +1100,7 @@ create_client(int fd, int port, const char *moniker)
|
||||
{
|
||||
c->salen = sizeof(c->sa);
|
||||
getpeername(fd, (struct sockaddr *)&c->sa, &c->salen);
|
||||
|
||||
|
||||
getnameinfo((struct sockaddr *)&c->sa, c->salen,
|
||||
c->servername, sizeof(c->servername),
|
||||
NULL, 0, NI_NUMERICHOST);
|
||||
|
Reference in New Issue
Block a user