Lines Matching refs:hdr

229 	} hdr;  in ntlmssp_put_type1()  local
237 mb2.mb_count = sizeof (hdr); in ntlmssp_put_type1()
261 bcopy(ntlmssp_id, &hdr.h_id, ID_SZ); in ntlmssp_put_type1()
262 hdr.h_type = NTLMSSP_MSGTYPE_NEGOTIATE; in ntlmssp_put_type1()
263 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type1()
271 (void) mb_put_sb_string(&mb2, &hdr.h_cldom, NULL, 0); in ntlmssp_put_type1()
272 (void) mb_put_sb_string(&mb2, &hdr.h_wksta, NULL, 0); in ntlmssp_put_type1()
278 (void) mb_put_mem(out_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_put_type1()
279 (void) mb_put_uint32le(out_mb, hdr.h_type); in ntlmssp_put_type1()
280 (void) mb_put_uint32le(out_mb, hdr.h_flags); in ntlmssp_put_type1()
281 (void) mb_put_sb_hdr(out_mb, &hdr.h_cldom); in ntlmssp_put_type1()
282 (void) mb_put_sb_hdr(out_mb, &hdr.h_wksta); in ntlmssp_put_type1()
303 } hdr; in ntlmssp_get_type2() local
326 bzero(&hdr, sizeof (hdr)); in ntlmssp_get_type2()
327 (void) md_get_mem(in_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_get_type2()
328 (void) md_get_uint32le(in_mb, &hdr.h_type); in ntlmssp_get_type2()
329 if (hdr.h_type != NTLMSSP_MSGTYPE_CHALLENGE) { in ntlmssp_get_type2()
333 (void) md_get_sb_hdr(in_mb, &hdr.h_target_name); in ntlmssp_get_type2()
334 (void) md_get_uint32le(in_mb, &hdr.h_flags); in ntlmssp_get_type2()
335 (void) md_get_mem(in_mb, &hdr.h_challenge, NTLM_CHAL_SZ, MB_MSYSTEM); in ntlmssp_get_type2()
340 ssp_st->ss_flags = hdr.h_flags; in ntlmssp_get_type2()
341 bcopy(&hdr.h_challenge, ctx->ct_srv_chal, NTLM_CHAL_SZ); in ntlmssp_get_type2()
347 uc = hdr.h_flags & NTLMSSP_NEGOTIATE_UNICODE; in ntlmssp_get_type2()
353 if ((m_totlen(top_mb.mb_top) > sizeof (hdr)) && in ntlmssp_get_type2()
354 (hdr.h_target_name.sb_offset >= sizeof (hdr))) { in ntlmssp_get_type2()
355 (void) md_get_uint32le(in_mb, &hdr.h_context[0]); in ntlmssp_get_type2()
356 (void) md_get_uint32le(in_mb, &hdr.h_context[1]); in ntlmssp_get_type2()
357 (void) md_get_sb_hdr(in_mb, &hdr.h_target_info); in ntlmssp_get_type2()
366 err = md_get_sb_data(&top_mb, &hdr.h_target_name, &m); in ntlmssp_get_type2()
376 if (hdr.h_target_info.sb_offset >= sizeof (hdr)) { in ntlmssp_get_type2()
377 err = md_get_sb_data(&top_mb, &hdr.h_target_info, in ntlmssp_get_type2()
410 } hdr; in ntlmssp_put_type3() local
421 bzero(&hdr, sizeof (hdr)); in ntlmssp_put_type3()
433 mb2.mb_count = sizeof (hdr); in ntlmssp_put_type3()
436 bcopy(ntlmssp_id, &hdr.h_id, ID_SZ); in ntlmssp_put_type3()
437 hdr.h_type = NTLMSSP_MSGTYPE_AUTHENTICATE; in ntlmssp_put_type3()
438 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type3()
457 hdr.h_flags = ssp_st->ss_flags; in ntlmssp_put_type3()
517 err = mb_put_sb_data(&mb2, &hdr.h_lm_resp, lm_mbc.mb_top); in ntlmssp_put_type3()
521 err = mb_put_sb_data(&mb2, &hdr.h_nt_resp, nt_mbc.mb_top); in ntlmssp_put_type3()
529 err = mb_put_sb_string(&mb2, &hdr.h_domain, ctx->ct_domain, uc); in ntlmssp_put_type3()
532 err = mb_put_sb_string(&mb2, &hdr.h_user, ctx->ct_user, uc); in ntlmssp_put_type3()
535 err = mb_put_sb_string(&mb2, &hdr.h_wksta, ctx->ct_locname, uc); in ntlmssp_put_type3()
543 err = mb_put_sb_data(&mb2, &hdr.h_ssn_key, ek_mbc.mb_top); in ntlmssp_put_type3()
552 (void) mb_put_mem(out_mb, &hdr.h_id, ID_SZ, MB_MSYSTEM); in ntlmssp_put_type3()
553 (void) mb_put_uint32le(out_mb, hdr.h_type); in ntlmssp_put_type3()
555 (void) mb_put_sb_hdr(out_mb, &hdr.h_lm_resp); in ntlmssp_put_type3()
556 (void) mb_put_sb_hdr(out_mb, &hdr.h_nt_resp); in ntlmssp_put_type3()
558 (void) mb_put_sb_hdr(out_mb, &hdr.h_domain); in ntlmssp_put_type3()
559 (void) mb_put_sb_hdr(out_mb, &hdr.h_user); in ntlmssp_put_type3()
560 (void) mb_put_sb_hdr(out_mb, &hdr.h_wksta); in ntlmssp_put_type3()
562 (void) mb_put_sb_hdr(out_mb, &hdr.h_ssn_key); in ntlmssp_put_type3()
563 (void) mb_put_uint32le(out_mb, hdr.h_flags); in ntlmssp_put_type3()