Lines Matching refs:hdr
229 } hdr; in ntlmssp_put_type1() local
237 mb2.mb_count = sizeof (hdr); in ntlmssp_put_type1()
263 bcopy(ntlmssp_id, &hdr.h_id, ID_SZ); in ntlmssp_put_type1()
264 hdr.h_type = NTLMSSP_MSGTYPE_NEGOTIATE; in ntlmssp_put_type1()
265 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type1()
273 (void) mb_put_sb_string(&mb2, &hdr.h_cldom, NULL, 0); in ntlmssp_put_type1()
274 (void) mb_put_sb_string(&mb2, &hdr.h_wksta, NULL, 0); in ntlmssp_put_type1()
280 (void) mb_put_mem(out_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_put_type1()
281 (void) mb_put_uint32le(out_mb, hdr.h_type); in ntlmssp_put_type1()
282 (void) mb_put_uint32le(out_mb, hdr.h_flags); in ntlmssp_put_type1()
283 (void) mb_put_sb_hdr(out_mb, &hdr.h_cldom); in ntlmssp_put_type1()
284 (void) mb_put_sb_hdr(out_mb, &hdr.h_wksta); in ntlmssp_put_type1()
305 } hdr; in ntlmssp_get_type2() local
328 bzero(&hdr, sizeof (hdr)); in ntlmssp_get_type2()
329 (void) md_get_mem(in_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_get_type2()
330 (void) md_get_uint32le(in_mb, &hdr.h_type); in ntlmssp_get_type2()
331 if (hdr.h_type != NTLMSSP_MSGTYPE_CHALLENGE) { in ntlmssp_get_type2()
335 (void) md_get_sb_hdr(in_mb, &hdr.h_target_name); in ntlmssp_get_type2()
336 (void) md_get_uint32le(in_mb, &hdr.h_flags); in ntlmssp_get_type2()
337 (void) md_get_mem(in_mb, &hdr.h_challenge, NTLM_CHAL_SZ, MB_MSYSTEM); in ntlmssp_get_type2()
342 ssp_st->ss_flags = hdr.h_flags; in ntlmssp_get_type2()
343 bcopy(&hdr.h_challenge, ctx->ct_srv_chal, NTLM_CHAL_SZ); in ntlmssp_get_type2()
349 uc = hdr.h_flags & NTLMSSP_NEGOTIATE_UNICODE; in ntlmssp_get_type2()
355 if ((m_totlen(top_mb.mb_top) > sizeof (hdr)) && in ntlmssp_get_type2()
356 (hdr.h_target_name.sb_offset >= sizeof (hdr))) { in ntlmssp_get_type2()
357 (void) md_get_uint32le(in_mb, &hdr.h_context[0]); in ntlmssp_get_type2()
358 (void) md_get_uint32le(in_mb, &hdr.h_context[1]); in ntlmssp_get_type2()
359 (void) md_get_sb_hdr(in_mb, &hdr.h_target_info); in ntlmssp_get_type2()
368 err = md_get_sb_data(&top_mb, &hdr.h_target_name, &m); in ntlmssp_get_type2()
378 if (hdr.h_target_info.sb_offset >= sizeof (hdr)) { in ntlmssp_get_type2()
379 err = md_get_sb_data(&top_mb, &hdr.h_target_info, in ntlmssp_get_type2()
412 } hdr; in ntlmssp_put_type3() local
423 bzero(&hdr, sizeof (hdr)); in ntlmssp_put_type3()
435 mb2.mb_count = sizeof (hdr); in ntlmssp_put_type3()
438 bcopy(ntlmssp_id, &hdr.h_id, ID_SZ); in ntlmssp_put_type3()
439 hdr.h_type = NTLMSSP_MSGTYPE_AUTHENTICATE; in ntlmssp_put_type3()
440 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type3()
454 hdr.h_flags |= NTLMSSP_NEGOTIATE_NULL_SESSION; in ntlmssp_put_type3()
512 err = mb_put_sb_data(&mb2, &hdr.h_lm_resp, lm_mbc.mb_top); in ntlmssp_put_type3()
516 err = mb_put_sb_data(&mb2, &hdr.h_nt_resp, nt_mbc.mb_top); in ntlmssp_put_type3()
524 err = mb_put_sb_string(&mb2, &hdr.h_domain, ctx->ct_domain, uc); in ntlmssp_put_type3()
527 err = mb_put_sb_string(&mb2, &hdr.h_user, ctx->ct_user, uc); in ntlmssp_put_type3()
530 err = mb_put_sb_string(&mb2, &hdr.h_wksta, ctx->ct_locname, uc); in ntlmssp_put_type3()
538 err = mb_put_sb_data(&mb2, &hdr.h_ssn_key, ek_mbc.mb_top); in ntlmssp_put_type3()
547 (void) mb_put_mem(out_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_put_type3()
548 (void) mb_put_uint32le(out_mb, hdr.h_type); in ntlmssp_put_type3()
550 (void) mb_put_sb_hdr(out_mb, &hdr.h_lm_resp); in ntlmssp_put_type3()
551 (void) mb_put_sb_hdr(out_mb, &hdr.h_nt_resp); in ntlmssp_put_type3()
553 (void) mb_put_sb_hdr(out_mb, &hdr.h_domain); in ntlmssp_put_type3()
554 (void) mb_put_sb_hdr(out_mb, &hdr.h_user); in ntlmssp_put_type3()
555 (void) mb_put_sb_hdr(out_mb, &hdr.h_wksta); in ntlmssp_put_type3()
557 (void) mb_put_sb_hdr(out_mb, &hdr.h_ssn_key); in ntlmssp_put_type3()
558 (void) mb_put_uint32le(out_mb, hdr.h_flags); in ntlmssp_put_type3()