Lines Matching defs:gps

189 	struct gssapi_ph1_state *gps;
200 gps = racoon_calloc(1, sizeof (struct gssapi_ph1_state));
201 if (gps == NULL) {
205 gps->gss_context = GSS_C_NO_CONTEXT;
206 gps->gss_cred = GSS_C_NO_CREDENTIAL;
208 gssapi_set_state(iph1, gps);
262 GSS_C_NO_OID_SET, GSS_C_BOTH, &gps->gss_cred, NULL, NULL);
282 struct gssapi_ph1_state *gps;
291 gps = gssapi_get_state(iph1);
314 rtoken = gps->gsscnt_p == 0 ? dummy : &gps->gss_p[gps->gsscnt_p - 1];
315 itoken = &gps->gss[gps->gsscnt];
317 gps->gss_status = gss_init_sec_context(&min_stat, gps->gss_cred,
318 &gps->gss_context, partner, GSS_C_NO_OID,
324 if (GSS_ERROR(gps->gss_status)) {
336 gps->gss_status);
342 gps->gsscnt++;
353 struct gssapi_ph1_state *gps;
362 gps = gssapi_get_state(iph1);
364 rtoken = &gps->gss_p[gps->gsscnt_p - 1];
365 itoken = &gps->gss[gps->gsscnt];
367 gps->gss_status = gss_accept_sec_context(&min_stat, &gps->gss_context,
368 gps->gss_cred, rtoken, GSS_C_NO_CHANNEL_BINDINGS, &client_name,
371 if (GSS_ERROR(gps->gss_status)) {
397 gps->gsscnt++;
408 struct gssapi_ph1_state *gps;
415 gps = gssapi_get_state(iph1);
417 gsstoken = &gps->gss_p[gps->gsscnt_p];
422 gps->gsscnt_p++;
430 struct gssapi_ph1_state *gps;
434 gps = gssapi_get_state(iph1);
435 if (gps == NULL) {
440 gsstoken = &gps->gss[gps->gsscnt - 1];
451 struct gssapi_ph1_state *gps;
456 gps = gssapi_get_state(iph1);
457 if (gps == NULL) {
463 for (i = len = 0; i < gps->gsscnt; i++)
464 len += gps->gss[i].length;
470 for (i = 0; i < gps->gsscnt; i++) {
471 memcpy(p, gps->gss[i].value, gps->gss[i].length);
472 p += gps->gss[i].length;
478 "%d itokens of length %zu\n", gps->gsscnt, (*tokens)->l);
486 struct gssapi_ph1_state *gps;
491 gps = gssapi_get_state(iph1);
492 if (gps == NULL) {
504 for (i = len = 0; i < gps->gsscnt_p; i++)
505 len += gps->gss_p[i].length;
511 for (i = 0; i < gps->gsscnt_p; i++) {
512 memcpy(p, gps->gss_p[i].value, gps->gss_p[i].length);
513 p += gps->gss_p[i].length;
524 struct gssapi_ph1_state *gps;
530 gps = gssapi_get_state(iph1);
531 if (gps == NULL) {
548 maj_stat = gss_wrap(&min_stat, gps->gss_context, 1, GSS_C_QOP_DEFAULT,
584 struct gssapi_ph1_state *gps;
590 gps = gssapi_get_state(iph1);
591 if (gps == NULL) {
604 maj_stat = gss_unwrap(&min_stat, gps->gss_context, hash_in, hash_out,
629 struct gssapi_ph1_state *gps;
631 gps = gssapi_get_state(iph1);
633 gps->gss_flags |= GSSFLAG_ID_SENT;
639 struct gssapi_ph1_state *gps;
641 gps = gssapi_get_state(iph1);
643 return (gps->gss_flags & GSSFLAG_ID_SENT) != 0;
649 struct gssapi_ph1_state *gps;
651 gps = gssapi_get_state(iph1);
653 gps->gss_flags |= GSSFLAG_ID_RCVD;
659 struct gssapi_ph1_state *gps;
661 gps = gssapi_get_state(iph1);
663 return (gps->gss_flags & GSSFLAG_ID_RCVD) != 0;
669 struct gssapi_ph1_state *gps;
672 gps = gssapi_get_state(iph1);
674 if (gps == NULL)
679 if (gps->gss_cred != GSS_C_NO_CREDENTIAL) {
680 maj_stat = gss_release_cred(&min_stat, &gps->gss_cred);
685 racoon_free(gps);