Lines Matching refs:ptr

52 	char *ptr;  in process_chpw_request()  local
96 ptr = req->data; in process_chpw_request()
101 plen = (*ptr++ & 0xff); in process_chpw_request()
102 plen = (plen<<8) | (*ptr++ & 0xff); in process_chpw_request()
110 vno = (*ptr++ & 0xff); in process_chpw_request()
111 vno = (vno<<8) | (*ptr++ & 0xff); 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()
139 ap_req.data = ptr; in process_chpw_request()
140 ptr += ap_req.length; in process_chpw_request()
333 cipher.length = (req->data + req->length) - ptr; in process_chpw_request()
334 cipher.data = 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()
367 ptr, NULL, strresult, in process_chpw_request()
374 (void) memset(ptr, 0, clear.length); in process_chpw_request()
379 free(ptr); in process_chpw_request()
424 ptr = clear.data; in process_chpw_request()
426 *ptr++ = (numresult>>8) & 0xff; in process_chpw_request()
427 *ptr++ = numresult & 0xff; in process_chpw_request()
429 (void) memcpy(ptr, strresult, strlen(strresult)); in process_chpw_request()
508 ptr = rep->data; in process_chpw_request()
513 *ptr++ = (rep->length>>8) & 0xff; in process_chpw_request()
514 *ptr++ = rep->length & 0xff; in process_chpw_request()
519 *ptr++ = 0; in process_chpw_request()
520 *ptr++ = 1; 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()
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()