Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 25 of 31) sorted by relevance

12

/external/openssl/crypto/asn1/
Dbio_ndef.c96 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
97 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg);
98 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg);
99 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg);
155 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument
169 *pbuf = p; in ndef_prefix()
175 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix()
180 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix_free() argument
193 *pbuf = NULL; in ndef_prefix_free()
198 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_suffix_free() argument
[all …]
Dasn_pack.c73 const unsigned char *pbuf; in STACK_OF() local
74 pbuf = buf; in STACK_OF()
75 if (!(sk = d2i_ASN1_SET(NULL, &pbuf, len, d2i, free_func, in STACK_OF()
/external/ipsec-tools/src/racoon/
Dremoteconf.c500 char buf[1024], *pbuf; in dump_peers_identifiers() local
501 pbuf = buf; in dump_peers_identifiers()
502 pbuf += sprintf (pbuf, "\tpeers_identifier %s", in dump_peers_identifiers()
505 pbuf += sprintf (pbuf, " \"%s\"", id->id->v); in dump_peers_identifiers()
515 char buf[1024], *pbuf; in dump_rmconf_single() local
517 pbuf = buf; in dump_rmconf_single()
518 pbuf += sprintf(pbuf, "remote %s", saddr2str(p->remote)); in dump_rmconf_single()
520 pbuf += sprintf(pbuf, " inherit %s", in dump_rmconf_single()
523 pbuf = buf; in dump_rmconf_single()
524 pbuf += sprintf(pbuf, "\texchange_type "); in dump_rmconf_single()
[all …]
Disakmp_ident.c256 vchar_t *pbuf = NULL; local
279 pbuf = isakmp_parse(msg);
280 if (pbuf == NULL)
282 pa = (struct isakmp_parse_t *)pbuf->v;
335 if (pbuf)
336 vfree(pbuf);
427 vchar_t *pbuf = NULL; local
446 pbuf = isakmp_parse(msg);
447 if (pbuf == NULL)
450 for (pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
Disakmp_newg.c89 vchar_t *pbuf = NULL;
92 if ((pbuf = isakmp_parse(msg)) == NULL)
95 for (pa = (struct isakmp_parse_t *)pbuf->v;
106 vfree(pbuf);
117 vfree(pbuf);
131 vfree(pbuf);
135 vfree(pbuf);
Disakmp_base.c296 vchar_t *pbuf = NULL; local
314 pbuf = isakmp_parse(msg);
315 if (pbuf == NULL)
317 pa = (struct isakmp_parse_t *)pbuf->v;
391 if (pbuf)
392 vfree(pbuf);
588 vchar_t *pbuf = NULL; local
605 pbuf = isakmp_parse(msg);
606 if (pbuf == NULL)
609 for (pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
Dsecurity.c71 vchar_t *pbuf = NULL; local
90 pbuf = isakmp_parsewoh(ISAKMP_NPTYPE_P, (struct isakmp_gen *)bp, len);
91 if (pbuf == NULL)
94 pa = (struct isakmp_parse_t *)pbuf->v;
99 vfree(pbuf);
106 vfree(pbuf);
Disakmp_agg.c342 vchar_t *pbuf = NULL; local
375 pbuf = isakmp_parse(msg);
376 if (pbuf == NULL)
378 pa = (struct isakmp_parse_t *)pbuf->v;
584 if (pbuf)
585 vfree(pbuf);
782 vchar_t *pbuf = NULL; local
797 pbuf = isakmp_parse(msg);
798 if (pbuf == NULL)
800 pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
Disakmp_quick.c316 vchar_t *pbuf = NULL; /* for payload parsing */ local
349 pbuf = isakmp_parse(msg);
350 if (pbuf == NULL)
352 pa = (struct isakmp_parse_t *)pbuf->v;
531 if (pbuf)
532 vfree(pbuf);
696 vchar_t *pbuf = NULL; /* for payload parsing */ local
720 pbuf = isakmp_parse(msg);
721 if (pbuf == NULL)
724 for (pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
Disakmp_inf.c128 vchar_t *pbuf = NULL; local
280 if (!(pbuf = isakmp_parse(msg))) {
286 for (pa = (struct isakmp_parse_t *)pbuf->v; pa->type; pa++) {
321 if (pbuf != NULL)
322 vfree(pbuf);
337 vchar_t *pbuf; local
454 vchar_t *pbuf; local
Dipsec_doi.c1329 vchar_t *pbuf = NULL; local
1332 pbuf = isakmp_parsewoh(ISAKMP_NPTYPE_P, (struct isakmp_gen *)bp, tlen);
1333 if (pbuf == NULL)
1336 for (pa = (struct isakmp_parse_t *)pbuf->v;
1343 vfree(pbuf);
1356 vfree(pbuf);
1376 vfree(pbuf);
1380 vfree(pbuf);
1381 pbuf = NULL;
1465 vchar_t *pbuf = NULL; local
[all …]
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y100 static u_int8_t *pbuf = NULL; /* sadb_x_policy buffer */ variable
476 if (pbuf) { in init_x_policy()
477 free(pbuf); in init_x_policy()
480 pbuf = malloc(sizeof(struct sadb_x_policy)); in init_x_policy()
481 if (pbuf == NULL) { in init_x_policy()
487 memset(pbuf, 0, tlen); in init_x_policy()
488 p = (struct sadb_x_policy *)pbuf; in init_x_policy()
525 n = realloc(pbuf, tlen);
530 pbuf = n;
532 p = (struct sadb_x_ipsecrequest *)&pbuf[offset];
[all …]
Dpfkey_dump.c488 char pbuf[NI_MAXSERV]; local
540 0, pbuf, sizeof(pbuf), NI_NUMERICSERV) != 0)
543 sport = atoi(pbuf);
561 0, pbuf, sizeof(pbuf), NI_NUMERICSERV) != 0)
564 dport = atoi(pbuf);
/external/srec/srec/clib/
Dsrec_arb.c285 char* pbuf; in read_arbdata_from_stream() local
304 pbuf = buffer; in read_arbdata_from_stream()
326 pbuf += sizeof(*allotree) / BYTES_PER_ATOM; in read_arbdata_from_stream()
327 pbuf -= sizeof(void*); // PCPinfo in read_arbdata_from_stream()
329 ASSERT(pftell(fp) == pbuf - buffer); in read_arbdata_from_stream()
332 PLogMessage("read allotree done %d\n", (int)(pbuf - buffer)); in read_arbdata_from_stream()
335 allotree->questions = (srec_question *)pbuf; in read_arbdata_from_stream()
336 read_questions(&allotree->questions, allotree->num_questions, &pbuf, fp); in read_arbdata_from_stream()
338 PLogMessage("read_questions done %d\n", (int)(pbuf - buffer)); in read_arbdata_from_stream()
340 ASSERT(pftell(fp) == pbuf - buffer); in read_arbdata_from_stream()
[all …]
/external/quake/quake/src/QW/client/
Dsnd_mix.c69 DWORD *pbuf; in S_TransferStereo16() local
87 while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &pbuf, &dwSize, in S_TransferStereo16()
110 pbuf = (DWORD *)shm->buffer; in S_TransferStereo16()
118 snd_out = (short *) pbuf + (lpos<<1); in S_TransferStereo16()
135 pDSBuf->lpVtbl->Unlock(pDSBuf, pbuf, dwSize, NULL, 0); in S_TransferStereo16()
148 DWORD *pbuf; in S_TransferPaintBuffer() local
174 while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &pbuf, &dwSize, in S_TransferPaintBuffer()
197 pbuf = (DWORD *)shm->buffer; in S_TransferPaintBuffer()
202 short *out = (short *) pbuf; in S_TransferPaintBuffer()
217 unsigned char *out = (unsigned char *) pbuf; in S_TransferPaintBuffer()
[all …]
/external/quake/quake/src/WinQuake/
Dsnd_mix.cpp77 DWORD *pbuf; in S_TransferStereo16() local
95 while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &pbuf, &dwSize, in S_TransferStereo16()
118 pbuf = (DWORD *)shm->buffer; in S_TransferStereo16()
126 snd_out = (short *) pbuf + (lpos<<1); in S_TransferStereo16()
143 pDSBuf->lpVtbl->Unlock(pDSBuf, pbuf, dwSize, NULL, 0); in S_TransferStereo16()
156 DWORD *pbuf; in S_TransferPaintBuffer() local
182 while ((hresult = pDSBuf->lpVtbl->Lock(pDSBuf, 0, gSndBufSize, &pbuf, &dwSize, in S_TransferPaintBuffer()
205 pbuf = (DWORD *)shm->buffer; in S_TransferPaintBuffer()
210 short *out = (short *) pbuf; in S_TransferPaintBuffer()
225 unsigned char *out = (unsigned char *) pbuf; in S_TransferPaintBuffer()
[all …]
Ddraw.cpp847 byte *pbuf; in Draw_FadeScreen() local
857 pbuf = (byte *)(vid.buffer + vid.rowbytes*y); in Draw_FadeScreen()
863 pbuf[x] = 0; in Draw_FadeScreen()
/external/openssl/crypto/evp/
Dp5_crpt2.c176 const unsigned char *pbuf; in PKCS5_v2_PBE_keyivgen() local
189 pbuf = param->value.sequence->data; in PKCS5_v2_PBE_keyivgen()
191 if(!(pbe2 = d2i_PBE2PARAM(NULL, &pbuf, plen))) { in PKCS5_v2_PBE_keyivgen()
235 const unsigned char *pbuf; in PKCS5_v2_PBKDF2_keyivgen() local
259 pbuf = param->value.sequence->data; in PKCS5_v2_PBKDF2_keyivgen()
262 if(!(kdf = d2i_PBKDF2PARAM(NULL, &pbuf, plen)) ) { in PKCS5_v2_PBKDF2_keyivgen()
Dp5_crpt.c83 const unsigned char *pbuf; in PKCS5_PBE_keyivgen() local
95 pbuf = param->value.sequence->data; in PKCS5_PBE_keyivgen()
96 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) { in PKCS5_PBE_keyivgen()
/external/openssl/crypto/pkcs12/
Dp12_crpt.c75 const unsigned char *pbuf; in PKCS12_PBE_keyivgen() local
85 pbuf = param->value.sequence->data; in PKCS12_PBE_keyivgen()
86 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) { in PKCS12_PBE_keyivgen()
/external/openssl/crypto/ec/
Dec_print.c142 unsigned char *buf, *pbuf; in EC_POINT_point2hex() local
165 pbuf = buf; in EC_POINT_point2hex()
168 int v = (int) *(pbuf++); in EC_POINT_point2hex()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_unix.c221 char *pbuf, *dir = NULL, *gid_str = NULL; in wpa_supplicant_ctrl_iface_path() local
227 pbuf = os_strdup(wpa_s->conf->ctrl_interface); in wpa_supplicant_ctrl_iface_path()
228 if (pbuf == NULL) in wpa_supplicant_ctrl_iface_path()
230 if (os_strncmp(pbuf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_path()
231 dir = pbuf + 4; in wpa_supplicant_ctrl_iface_path()
238 dir = pbuf; in wpa_supplicant_ctrl_iface_path()
243 os_free(pbuf); in wpa_supplicant_ctrl_iface_path()
249 os_free(pbuf); in wpa_supplicant_ctrl_iface_path()
265 os_free(pbuf); in wpa_supplicant_ctrl_iface_path()
/external/wpa_supplicant_6/wpa_supplicant/
Dctrl_iface_unix.c206 char *pbuf, *dir = NULL, *gid_str = NULL; in wpa_supplicant_ctrl_iface_path() local
212 pbuf = os_strdup(wpa_s->conf->ctrl_interface); in wpa_supplicant_ctrl_iface_path()
213 if (pbuf == NULL) in wpa_supplicant_ctrl_iface_path()
215 if (os_strncmp(pbuf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_path()
216 dir = pbuf + 4; in wpa_supplicant_ctrl_iface_path()
223 dir = pbuf; in wpa_supplicant_ctrl_iface_path()
228 os_free(pbuf); in wpa_supplicant_ctrl_iface_path()
234 os_free(pbuf); in wpa_supplicant_ctrl_iface_path()
250 os_free(pbuf); in wpa_supplicant_ctrl_iface_path()
/external/srec/srec/crec/
Dword_lattice.c153 char *pbuf = buf; in sprint_bword_token_backtrace() local
154 *pbuf = 0; in sprint_bword_token_backtrace()
162 ASSERT(pbuf + strlen(p) + 1 < buf + buflen); in sprint_bword_token_backtrace()
163 pbuf += sprintf(pbuf, "%s ", p); in sprint_bword_token_backtrace()
168 if (pbuf > buf && *(pbuf - 1) == ' ') *(pbuf - 1) = 0; in sprint_bword_token_backtrace()
/external/qemu/
Dtap-win32.c545 uint8_t **pbuf, int max_size) in tap_win32_read() argument
552 *pbuf = buffer->buffer; in tap_win32_read()
563 uint8_t *pbuf) in tap_win32_free_buffer() argument
565 tun_buffer_t* buffer = (tun_buffer_t*)pbuf; in tap_win32_free_buffer()

12