Lines Matching refs:hdr
355 struct asn1_hdr hdr;
369 if (asn1_get_next(pos, len, &hdr) < 0 ||
370 hdr.class != ASN1_CLASS_UNIVERSAL ||
371 hdr.tag != ASN1_TAG_SEQUENCE) {
374 hdr.class, hdr.tag);
377 pos = hdr.payload;
380 if (asn1_get_next(pos, end - pos, &hdr) < 0)
383 if (hdr.class != ASN1_CLASS_UNIVERSAL ||
384 hdr.tag != ASN1_TAG_INTEGER) {
386 "class=%d tag=0x%x", hdr.class, hdr.tag);
390 wpa_hexdump(MSG_MSGDUMP, "DH: prime (p)", hdr.payload, hdr.length);
391 if (hdr.length == 0)
394 cred->dh_p = os_malloc(hdr.length);
397 os_memcpy(cred->dh_p, hdr.payload, hdr.length);
398 cred->dh_p_len = hdr.length;
399 pos = hdr.payload + hdr.length;
402 if (asn1_get_next(pos, end - pos, &hdr) < 0)
405 if (hdr.class != ASN1_CLASS_UNIVERSAL ||
406 hdr.tag != ASN1_TAG_INTEGER) {
408 "class=%d tag=0x%x", hdr.class, hdr.tag);
412 wpa_hexdump(MSG_MSGDUMP, "DH: base (g)", hdr.payload, hdr.length);
413 if (hdr.length == 0)
416 cred->dh_g = os_malloc(hdr.length);
419 os_memcpy(cred->dh_g, hdr.payload, hdr.length);
420 cred->dh_g_len = hdr.length;