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