Lines Matching refs:payload
463 pos = hdr.payload; in pkcs12_certbag()
464 end = hdr.payload + hdr.length; in pkcs12_certbag()
488 if (asn1_get_next(hdr.payload, hdr.length, &hdr) < 0 || in pkcs12_certbag()
496 hdr.payload, hdr.length); in pkcs12_certbag()
501 cert = x509_certificate_parse(hdr.payload, hdr.length); in pkcs12_certbag()
511 return tlsv1_set_cert(cred, NULL, hdr.payload, hdr.length); in pkcs12_certbag()
535 hdr.payload, hdr.length); in pkcs12_parse_attr_friendly_name()
560 hdr.payload, hdr.length); in pkcs12_parse_attr_local_key_id()
592 hdr.payload, hdr.length); in pkcs12_parse_attr()
593 pos = hdr.payload; in pkcs12_parse_attr()
594 end = hdr.payload + hdr.length; in pkcs12_parse_attr()
634 value = hdr.payload; in pkcs12_safebag()
637 pos = hdr.payload + hdr.length; in pkcs12_safebag()
648 hdr.payload, hdr.length); in pkcs12_safebag()
650 pos = hdr.payload; in pkcs12_safebag()
651 end = hdr.payload + hdr.length; in pkcs12_safebag()
660 if (pkcs12_parse_attr(hdr.payload, hdr.length) < 0) in pkcs12_safebag()
662 pos = hdr.payload + hdr.length; in pkcs12_safebag()
691 pos = hdr.payload; in pkcs12_safecontents()
692 end = hdr.payload + hdr.length; in pkcs12_safecontents()
709 if (pkcs12_safebag(cred, hdr.payload, hdr.length, passwd) < 0) in pkcs12_safecontents()
711 pos = hdr.payload + hdr.length; in pkcs12_safecontents()
731 wpa_hexdump(MSG_MSGDUMP, "PKCS #12: Data", hdr.payload, hdr.length); in pkcs12_parse_content_data()
733 return pkcs12_safecontents(cred, hdr.payload, hdr.length, passwd); in pkcs12_parse_content_data()
760 pos = hdr.payload; in pkcs12_parse_content_enc_data()
768 if (hdr.length != 1 || hdr.payload[0] != 0) { in pkcs12_parse_content_enc_data()
772 pos = hdr.payload + hdr.length; in pkcs12_parse_content_enc_data()
790 pos = hdr.payload; in pkcs12_parse_content_enc_data()
817 enc_alg = hdr.payload; in pkcs12_parse_content_enc_data()
819 pos = hdr.payload + hdr.length; in pkcs12_parse_content_enc_data()
829 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs12_parse_content_enc_data()
870 pos = hdr.payload; in pkcs12_parse_content()
906 pos = hdr.payload; in pkcs12_parse()
914 if (hdr.length != 1 || hdr.payload[0] != 3) { in pkcs12_parse()
918 pos = hdr.payload + hdr.length; in pkcs12_parse()
933 pos = hdr.payload; in pkcs12_parse()
957 pos = hdr.payload; in pkcs12_parse()
974 hdr.payload, hdr.length); in pkcs12_parse()
976 if (asn1_get_next(hdr.payload, hdr.length, &hdr) < 0 || in pkcs12_parse()
983 pos = hdr.payload; in pkcs12_parse()
993 if (pkcs12_parse_content(cred, hdr.payload, hdr.length, in pkcs12_parse()
997 pos = hdr.payload + hdr.length; in pkcs12_parse()
1093 pos = hdr.payload; in tlsv1_set_dhparams_der()
1102 wpa_hexdump(MSG_MSGDUMP, "DH: prime (p)", hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
1106 cred->dh_p = os_memdup(hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
1110 pos = hdr.payload + hdr.length; in tlsv1_set_dhparams_der()
1119 wpa_hexdump(MSG_MSGDUMP, "DH: base (g)", hdr.payload, hdr.length); in tlsv1_set_dhparams_der()
1123 cred->dh_g = os_memdup(hdr.payload, hdr.length); in tlsv1_set_dhparams_der()