Lines Matching refs:val

70     int32_t val;
79 ret32(client, val);
81 return val;
92 int32_t val;
99 ret32(client, val);
102 return val;
112 int32_t val;
117 ret32(client, val);
119 return val;
126 int32_t val;
129 ret32(client, val);
130 return val;
153 int32_t val;
159 ret32(client, val);
161 return val;
168 int32_t val;
174 ret32(client, val);
176 return val;
184 int32_t val;
192 ret32(client, val);
194 return val;
202 int32_t val;
210 ret32(client, val);
212 return val;
219 int32_t val;
225 ret32(client, val);
227 return val;
234 int32_t val;
241 ret32(client, val);
242 return val;
318 int32_t val = GSMERR_ERROR, ic = 0, ac = 0, deleg = 0;
333 val = GSMERR_ERROR;
337 val = init_sec_context(ipeer, &ic, &hCred, flags|first_call,
340 switch(val) {
350 ipeer->name, (int)val, step);
356 val = GSMERR_ERROR;
360 val = accept_sec_context(apeer, &ac, flags|first_call,
363 switch(val) {
373 apeer->name, (int)val, step);
374 val = GSMERR_ERROR;
378 val = GSMERR_OK;
381 if (iContext == NULL || val != GSMERR_OK) {
389 if (aContext == NULL || val != GSMERR_OK) {
397 if (hDelegCred == NULL || val != GSMERR_OK) {
406 return val;
413 int32_t val;
420 val = get_mic(c1, hc1, &msg, &mic);
421 if (val)
423 val = verify_mic(c2, hc2, &msg, &mic);
424 if (val)
435 int32_t val;
443 val = encrypt_token(c1, hc1, conf, &msg, &wrapped);
444 if (val) {
446 return val;
448 val = decrypt_token(c2, hc2, conf, &wrapped, &out);
449 if (val) {
452 return val;
458 val = GSMERR_ERROR;
461 val = GSMERR_ERROR;
466 return val;
474 int32_t val;
488 val = wrap_token_ext(c1, hc1, conf, bflags, &header, &msg, &trailer, &wrapped);
489 if (val) {
491 return val;
493 val = unwrap_token_ext(c2, hc2, conf, bflags, &header, &wrapped, &trailer, &out);
494 if (val) {
497 return val;
503 val = GSMERR_ERROR;
506 val = GSMERR_ERROR;
511 return val;
518 int32_t val;
527 val = test_wrap(c1, hc1, c2, hc2, 0);
528 if (val) return val;
529 val = test_wrap(c2, hc2, c1, hc1, 0);
530 if (val) return val;
532 val = test_wrap(c1, hc1, c2, hc2, 1);
533 if (val) return val;
534 val = test_wrap(c2, hc2, c1, hc1, 1);
535 if (val) return val;
539 val = test_wrap_ext(c1, hc1, c2, hc2, 1, 0);
540 if (val) return val;
541 val = test_wrap_ext(c2, hc2, c1, hc1, 1, 0);
542 if (val) return val;
544 val = test_wrap_ext(c1, hc1, c2, hc2, 1, 1);
545 if (val) return val;
546 val = test_wrap_ext(c2, hc2, c1, hc1, 1, 1);
547 if (val) return val;
549 val = test_wrap_ext(c1, hc1, c2, hc2, 0, 0);
550 if (val) return val;
551 val = test_wrap_ext(c2, hc2, c1, hc1, 0, 0);
552 if (val) return val;
554 val = test_wrap_ext(c1, hc1, c2, hc2, 0, 1);
555 if (val) return val;
556 val = test_wrap_ext(c2, hc2, c1, hc1, 0, 1);
557 if (val) return val;
814 int32_t hCred, val;
816 val = acquire_cred(clients[i], user, password, 1, &hCred);
817 if (val != GSMERR_OK) {
819 clients[i]->moniker, (int)val);
834 int32_t hCred, val, delegCred;
844 val = acquire_cred(c, user, password, 1, &hCred);
845 if (val != GSMERR_OK)
846 errx(1, "failed to acquire_cred: %d", (int)val);
848 val = build_context(c, c,
853 if (val == GSMERR_OK) {
860 warnx("build_context failed: %d", (int)val);
866 val = build_context(c, c,
869 if (val == GSMERR_OK) {
876 warnx("build_context failed: %d", (int)val);
893 int32_t hCred, val, delegCred = 0;
901 val = acquire_cred(client, user, password, 1, &hCred);
902 if (val != GSMERR_OK)
903 errx(1, "failed to acquire_cred: %d", (int)val);
915 val = build_context(client, server,
920 if (val != GSMERR_OK) {
921 warnx("build_context failed: %d", (int)val);
925 val = test_token(client, clientC, server, serverC, wrap_ext);
926 if (val)