Lines Matching refs:gsstoken
109 gssapi_vm2gssbuf(vchar_t *vmbuf, gss_buffer_t gsstoken) in gssapi_vm2gssbuf() argument
112 gsstoken->value = racoon_malloc(vmbuf->l); in gssapi_vm2gssbuf()
113 if (gsstoken->value == NULL) in gssapi_vm2gssbuf()
115 memcpy(gsstoken->value, vmbuf->v, vmbuf->l); in gssapi_vm2gssbuf()
116 gsstoken->length = vmbuf->l; in gssapi_vm2gssbuf()
122 gssapi_gss2vmbuf(gss_buffer_t gsstoken, vchar_t **vmbuf) in gssapi_gss2vmbuf() argument
125 *vmbuf = vmalloc(gsstoken->length); in gssapi_gss2vmbuf()
128 memcpy((*vmbuf)->v, gsstoken->value, gsstoken->length); in gssapi_gss2vmbuf()
129 (*vmbuf)->l = gsstoken->length; in gssapi_gss2vmbuf()
404 gss_buffer_t gsstoken; in gssapi_save_received_token() local
412 gsstoken = &gps->gss_p[gps->gsscnt_p]; in gssapi_save_received_token()
414 ret = gssapi_vm2gssbuf(token, gsstoken); in gssapi_save_received_token()
426 gss_buffer_t gsstoken; in gssapi_get_token_to_send() local
435 gsstoken = &gps->gss[gps->gsscnt - 1]; in gssapi_get_token_to_send()
436 ret = gssapi_gss2vmbuf(gsstoken, token); in gssapi_get_token_to_send()