Lines Matching refs:length

72 	rep->length = 0;  in process_chpw_request()
76 ap_rep.length = 0; in process_chpw_request()
79 clear.length = 0; in process_chpw_request()
81 cipher.length = 0; in process_chpw_request()
84 if (req->length < 4) { in process_chpw_request()
104 if (plen != req->length) in process_chpw_request()
125 ap_req.length = (*ptr++ & 0xff); in process_chpw_request()
126 ap_req.length = (ap_req.length<<8) | (*ptr++ & 0xff); in process_chpw_request()
128 if (ptr + ap_req.length >= req->data + req->length) { in process_chpw_request()
140 ptr += ap_req.length; in process_chpw_request()
236 local_kaddr.length = sizeof (((struct sockaddr_in *) in process_chpw_request()
247 local_kaddr.length = addrs[0]->length; in process_chpw_request()
248 if ((local_kaddr.contents = malloc(addrs[0]->length)) == 0) { in process_chpw_request()
258 addrs[0]->length); in process_chpw_request()
276 remote_kaddr.length = sizeof (((struct sockaddr_in *) in process_chpw_request()
281 remote_kaddr.length = sizeof (sin->sin_addr); in process_chpw_request()
333 cipher.length = (req->data + req->length) - ptr; in process_chpw_request()
354 if ((ptr = (char *)malloc(clear.length + 1)) == NULL) { in process_chpw_request()
362 (void) memcpy(ptr, clear.data, clear.length); in process_chpw_request()
363 ptr[clear.length] = '\0'; in process_chpw_request()
373 (void) memset(clear.data, 0, clear.length); in process_chpw_request()
374 (void) memset(ptr, 0, clear.length); in process_chpw_request()
380 clear.length = 0; in process_chpw_request()
412 clear.length = 2 + strlen(strresult); in process_chpw_request()
417 if ((clear.data = (char *)malloc(clear.length)) == NULL) { in process_chpw_request()
431 cipher.length = 0; in process_chpw_request()
433 if (ap_rep.length) { in process_chpw_request()
455 if (cipher.length == 0) { in process_chpw_request()
460 if (ap_rep.length) { in process_chpw_request()
464 ap_rep.length = 0; in process_chpw_request()
489 krberror.text.length = 0; in process_chpw_request()
503 rep->length = 6 + ap_rep.length + cipher.length; in process_chpw_request()
504 if ((rep->data = (char *)malloc(rep->length)) == NULL) { in process_chpw_request()
513 *ptr++ = (rep->length>>8) & 0xff; in process_chpw_request()
514 *ptr++ = rep->length & 0xff; in process_chpw_request()
525 *ptr++ = (ap_rep.length>>8) & 0xff; in process_chpw_request()
526 *ptr++ = ap_rep.length & 0xff; in process_chpw_request()
531 if (ap_rep.length) { in process_chpw_request()
532 (void) memcpy(ptr, ap_rep.data, ap_rep.length); in process_chpw_request()
533 ptr += ap_rep.length; in process_chpw_request()
539 (void) memcpy(ptr, cipher.data, cipher.length); in process_chpw_request()
578 reqdata.length = 0; in handle_chpw()
580 repdata.length = 0; in handle_chpw()
604 reqdata.length = len; in handle_chpw()
649 if (repdata.length == 0 || repdata.data == NULL) { in handle_chpw()
656 len = sendto(s1, repdata.data, repdata.length, 0, in handle_chpw()
659 if (len < repdata.length) { in handle_chpw()