Lines Matching refs:CHECK
110 #define CHECK(f, e) \ macro
222 CHECK(krb5_ret_uint16(sp, &buf->length), 0); in ret_sec_buffer()
223 CHECK(krb5_ret_uint16(sp, &buf->allocated), 0); in ret_sec_buffer()
224 CHECK(krb5_ret_uint32(sp, &buf->offset), 0); in ret_sec_buffer()
233 CHECK(krb5_store_uint16(sp, buf->length), 0); in store_sec_buffer()
234 CHECK(krb5_store_uint16(sp, buf->allocated), 0); in store_sec_buffer()
235 CHECK(krb5_store_uint32(sp, buf->offset), 0); in store_sec_buffer()
266 CHECK(krb5_storage_read(sp, *s, len), len); in ret_string()
293 CHECK(krb5_storage_seek(sp, desc->offset, SEEK_SET), desc->offset); in ret_sec_string()
294 CHECK(ret_string(sp, ucs2, desc->length, s), 0); in ret_sec_string()
314 CHECK(krb5_storage_write(sp, buf.data, buf.length), buf.length); in put_string()
333 CHECK(krb5_storage_seek(sp, desc->offset, SEEK_SET), desc->offset); in ret_buf()
334 CHECK(krb5_storage_read(sp, buf->data, buf->length), buf->length); in ret_buf()
344 CHECK(krb5_storage_write(sp, buf->data, buf->length), buf->length); in put_buf()
373 CHECK(krb5_store_uint16(out, type), 0); in encode_ti_string()
374 CHECK(krb5_store_uint16(out, len_string(ucs2, s)), 0); in encode_ti_string()
375 CHECK(put_string(out, ucs2, s), 0); in encode_ti_string()
412 CHECK(encode_ti_string(out, 1, ucs2, ti->servername), 0); in heim_ntlm_encode_targetinfo()
414 CHECK(encode_ti_string(out, 2, ucs2, ti->domainname), 0); in heim_ntlm_encode_targetinfo()
416 CHECK(encode_ti_string(out, 3, ucs2, ti->dnsservername), 0); in heim_ntlm_encode_targetinfo()
418 CHECK(encode_ti_string(out, 4, ucs2, ti->dnsdomainname), 0); in heim_ntlm_encode_targetinfo()
420 CHECK(encode_ti_string(out, 5, ucs2, ti->dnstreename), 0); in heim_ntlm_encode_targetinfo()
422 CHECK(krb5_store_uint16(out, 6), 0); in heim_ntlm_encode_targetinfo()
423 CHECK(krb5_store_uint16(out, 4), 0); in heim_ntlm_encode_targetinfo()
424 CHECK(krb5_store_uint32(out, ti->avflags), 0); in heim_ntlm_encode_targetinfo()
428 CHECK(krb5_store_int16(out, 0), 0); in heim_ntlm_encode_targetinfo()
429 CHECK(krb5_store_int16(out, 0), 0); in heim_ntlm_encode_targetinfo()
475 CHECK(krb5_ret_uint16(in, &type), 0); in heim_ntlm_decode_targetinfo()
476 CHECK(krb5_ret_uint16(in, &len), 0); in heim_ntlm_decode_targetinfo()
483 CHECK(ret_string(in, ucs2, len, &ti->servername), 0); in heim_ntlm_decode_targetinfo()
486 CHECK(ret_string(in, ucs2, len, &ti->domainname), 0); in heim_ntlm_decode_targetinfo()
489 CHECK(ret_string(in, ucs2, len, &ti->dnsservername), 0); in heim_ntlm_decode_targetinfo()
492 CHECK(ret_string(in, ucs2, len, &ti->dnsdomainname), 0); in heim_ntlm_decode_targetinfo()
495 CHECK(ret_string(in, ucs2, len, &ti->dnstreename), 0); in heim_ntlm_decode_targetinfo()
498 CHECK(krb5_ret_uint32(in, &ti->avflags), 0); in heim_ntlm_decode_targetinfo()
547 CHECK(krb5_storage_read(in, sig, sizeof(sig)), sizeof(sig)); in heim_ntlm_decode_type1()
548 CHECK(memcmp(ntlmsigature, sig, sizeof(ntlmsigature)), 0); in heim_ntlm_decode_type1()
549 CHECK(krb5_ret_uint32(in, &type), 0); in heim_ntlm_decode_type1()
550 CHECK(type, 1); in heim_ntlm_decode_type1()
551 CHECK(krb5_ret_uint32(in, &data->flags), 0); in heim_ntlm_decode_type1()
553 CHECK(ret_sec_buffer(in, &domain), 0); in heim_ntlm_decode_type1()
555 CHECK(ret_sec_buffer(in, &hostname), 0); in heim_ntlm_decode_type1()
558 CHECK(krb5_ret_uint32(in, &data->os[0]), 0); in heim_ntlm_decode_type1()
559 CHECK(krb5_ret_uint32(in, &data->os[1]), 0); in heim_ntlm_decode_type1()
563 CHECK(ret_sec_string(in, 0, &domain, &data->domain), 0); in heim_ntlm_decode_type1()
565 CHECK(ret_sec_string(in, 0, &hostname, &data->hostname), 0); in heim_ntlm_decode_type1()
634 CHECK(krb5_storage_write(out, ntlmsigature, sizeof(ntlmsigature)), in heim_ntlm_encode_type1()
636 CHECK(krb5_store_uint32(out, 1), 0); in heim_ntlm_encode_type1()
637 CHECK(krb5_store_uint32(out, flags), 0); in heim_ntlm_encode_type1()
639 CHECK(store_sec_buffer(out, &domain), 0); in heim_ntlm_encode_type1()
640 CHECK(store_sec_buffer(out, &hostname), 0); in heim_ntlm_encode_type1()
642 CHECK(krb5_store_uint32(out, type1->os[0]), 0); in heim_ntlm_encode_type1()
643 CHECK(krb5_store_uint32(out, type1->os[1]), 0); in heim_ntlm_encode_type1()
646 CHECK(put_string(out, 0, type1->domain), 0); in heim_ntlm_encode_type1()
648 CHECK(put_string(out, 0, type1->hostname), 0); in heim_ntlm_encode_type1()
698 CHECK(krb5_storage_read(in, sig, sizeof(sig)), sizeof(sig)); in heim_ntlm_decode_type2()
699 CHECK(memcmp(ntlmsigature, sig, sizeof(ntlmsigature)), 0); in heim_ntlm_decode_type2()
700 CHECK(krb5_ret_uint32(in, &type), 0); in heim_ntlm_decode_type2()
701 CHECK(type, 2); in heim_ntlm_decode_type2()
703 CHECK(ret_sec_buffer(in, &targetname), 0); in heim_ntlm_decode_type2()
704 CHECK(krb5_ret_uint32(in, &type2->flags), 0); in heim_ntlm_decode_type2()
707 CHECK(krb5_storage_read(in, type2->challenge, sizeof(type2->challenge)), in heim_ntlm_decode_type2()
709 CHECK(krb5_ret_uint32(in, &ctx[0]), 0); /* context */ in heim_ntlm_decode_type2()
710 CHECK(krb5_ret_uint32(in, &ctx[1]), 0); in heim_ntlm_decode_type2()
711 CHECK(ret_sec_buffer(in, &targetinfo), 0); in heim_ntlm_decode_type2()
714 CHECK(krb5_ret_uint32(in, &type2->os[0]), 0); in heim_ntlm_decode_type2()
715 CHECK(krb5_ret_uint32(in, &type2->os[1]), 0); in heim_ntlm_decode_type2()
718 CHECK(ret_sec_string(in, ucs2, &targetname, &type2->targetname), 0); in heim_ntlm_decode_type2()
719 CHECK(ret_buf(in, &targetinfo, &type2->targetinfo), 0); in heim_ntlm_decode_type2()
774 CHECK(krb5_storage_write(out, ntlmsigature, sizeof(ntlmsigature)), in heim_ntlm_encode_type2()
776 CHECK(krb5_store_uint32(out, 2), 0); in heim_ntlm_encode_type2()
777 CHECK(store_sec_buffer(out, &targetname), 0); in heim_ntlm_encode_type2()
778 CHECK(krb5_store_uint32(out, type2->flags), 0); in heim_ntlm_encode_type2()
779 CHECK(krb5_storage_write(out, type2->challenge, sizeof(type2->challenge)), in heim_ntlm_encode_type2()
781 CHECK(krb5_store_uint32(out, 0), 0); /* context */ in heim_ntlm_encode_type2()
782 CHECK(krb5_store_uint32(out, 0), 0); in heim_ntlm_encode_type2()
783 CHECK(store_sec_buffer(out, &targetinfo), 0); in heim_ntlm_encode_type2()
786 CHECK(krb5_store_uint32(out, type2->os[0]), 0); in heim_ntlm_encode_type2()
787 CHECK(krb5_store_uint32(out, type2->os[1]), 0); in heim_ntlm_encode_type2()
789 CHECK(put_string(out, ucs2, type2->targetname), 0); in heim_ntlm_encode_type2()
790 CHECK(krb5_storage_write(out, type2->targetinfo.data, in heim_ntlm_encode_type2()
856 CHECK(krb5_storage_read(in, sig, sizeof(sig)), sizeof(sig)); in heim_ntlm_decode_type3()
857 CHECK(memcmp(ntlmsigature, sig, sizeof(ntlmsigature)), 0); in heim_ntlm_decode_type3()
858 CHECK(krb5_ret_uint32(in, &type), 0); in heim_ntlm_decode_type3()
859 CHECK(type, 3); in heim_ntlm_decode_type3()
860 CHECK(ret_sec_buffer(in, &lm), 0); in heim_ntlm_decode_type3()
863 CHECK(ret_sec_buffer(in, &ntlm), 0); in heim_ntlm_decode_type3()
866 CHECK(ret_sec_buffer(in, &target), 0); in heim_ntlm_decode_type3()
869 CHECK(ret_sec_buffer(in, &username), 0); in heim_ntlm_decode_type3()
872 CHECK(ret_sec_buffer(in, &ws), 0); in heim_ntlm_decode_type3()
877 CHECK(ret_sec_buffer(in, &sessionkey), 0); in heim_ntlm_decode_type3()
879 CHECK(krb5_ret_uint32(in, &type3->flags), 0); in heim_ntlm_decode_type3()
882 CHECK(krb5_ret_uint32(in, &type3->os[0]), 0); in heim_ntlm_decode_type3()
883 CHECK(krb5_ret_uint32(in, &type3->os[1]), 0); in heim_ntlm_decode_type3()
885 CHECK(ret_buf(in, &lm, &type3->lm), 0); in heim_ntlm_decode_type3()
886 CHECK(ret_buf(in, &ntlm, &type3->ntlm), 0); in heim_ntlm_decode_type3()
887 CHECK(ret_sec_string(in, ucs2, &target, &type3->targetname), 0); in heim_ntlm_decode_type3()
888 CHECK(ret_sec_string(in, ucs2, &username, &type3->username), 0); in heim_ntlm_decode_type3()
889 CHECK(ret_sec_string(in, ucs2, &ws, &type3->ws), 0); in heim_ntlm_decode_type3()
891 CHECK(ret_buf(in, &sessionkey, &type3->sessionkey), 0); in heim_ntlm_decode_type3()
972 CHECK(krb5_storage_write(out, ntlmsigature, sizeof(ntlmsigature)), in heim_ntlm_encode_type3()
974 CHECK(krb5_store_uint32(out, 3), 0); in heim_ntlm_encode_type3()
976 CHECK(store_sec_buffer(out, &lm), 0); in heim_ntlm_encode_type3()
977 CHECK(store_sec_buffer(out, &ntlm), 0); in heim_ntlm_encode_type3()
978 CHECK(store_sec_buffer(out, &target), 0); in heim_ntlm_encode_type3()
979 CHECK(store_sec_buffer(out, &username), 0); in heim_ntlm_encode_type3()
980 CHECK(store_sec_buffer(out, &ws), 0); in heim_ntlm_encode_type3()
981 CHECK(store_sec_buffer(out, &sessionkey), 0); in heim_ntlm_encode_type3()
982 CHECK(krb5_store_uint32(out, type3->flags), 0); in heim_ntlm_encode_type3()
985 CHECK(krb5_store_uint32(out, 0), 0); /* os0 */ in heim_ntlm_encode_type3()
986 CHECK(krb5_store_uint32(out, 0), 0); /* os1 */ in heim_ntlm_encode_type3()
989 CHECK(put_string(out, ucs2, type3->targetname), 0); in heim_ntlm_encode_type3()
990 CHECK(put_string(out, ucs2, type3->username), 0); in heim_ntlm_encode_type3()
991 CHECK(put_string(out, ucs2, type3->ws), 0); in heim_ntlm_encode_type3()
992 CHECK(put_buf(out, &type3->lm), 0); in heim_ntlm_encode_type3()
993 CHECK(put_buf(out, &type3->ntlm), 0); in heim_ntlm_encode_type3()
994 CHECK(put_buf(out, &type3->sessionkey), 0); in heim_ntlm_encode_type3()
1542 CHECK(krb5_store_uint32(sp, 0x00000101), 0); in heim_ntlm_calculate_ntlm2()
1543 CHECK(krb5_store_uint32(sp, 0), 0); in heim_ntlm_calculate_ntlm2()
1545 CHECK(krb5_store_uint32(sp, t & 0xffffffff), 0); in heim_ntlm_calculate_ntlm2()
1546 CHECK(krb5_store_uint32(sp, t >> 32), 0); in heim_ntlm_calculate_ntlm2()
1548 CHECK(krb5_storage_write(sp, clientchallenge, 8), 8); in heim_ntlm_calculate_ntlm2()
1550 CHECK(krb5_store_uint32(sp, 0), 0); /* unknown but zero will work */ in heim_ntlm_calculate_ntlm2()
1551 CHECK(krb5_storage_write(sp, infotarget->data, infotarget->length), in heim_ntlm_calculate_ntlm2()
1553 CHECK(krb5_store_uint32(sp, 0), 0); /* unknown but zero will work */ in heim_ntlm_calculate_ntlm2()
1555 CHECK(krb5_storage_to_data(sp, &data), 0); in heim_ntlm_calculate_ntlm2()
1571 CHECK(krb5_storage_write(sp, ntlmv2answer, 16), 16); in heim_ntlm_calculate_ntlm2()
1572 CHECK(krb5_storage_write(sp, data.data, data.length), data.length); in heim_ntlm_calculate_ntlm2()
1575 CHECK(krb5_storage_to_data(sp, &data), 0); in heim_ntlm_calculate_ntlm2()
1650 CHECK(krb5_storage_read(sp, clientanswer, 16), 16); in heim_ntlm_verify_ntlm2()
1652 CHECK(krb5_ret_uint32(sp, &temp), 0); in heim_ntlm_verify_ntlm2()
1653 CHECK(temp, 0x00000101); in heim_ntlm_verify_ntlm2()
1654 CHECK(krb5_ret_uint32(sp, &temp), 0); in heim_ntlm_verify_ntlm2()
1655 CHECK(temp, 0); in heim_ntlm_verify_ntlm2()
1657 CHECK(krb5_ret_uint32(sp, &temp), 0); in heim_ntlm_verify_ntlm2()
1659 CHECK(krb5_ret_uint32(sp, &temp), 0); in heim_ntlm_verify_ntlm2()
1670 CHECK(krb5_storage_read(sp, clientnonce, 8), 8); in heim_ntlm_verify_ntlm2()
1672 CHECK(krb5_ret_uint32(sp, &temp), 0); /* unknown */ in heim_ntlm_verify_ntlm2()
1681 CHECK(krb5_storage_read(sp, infotarget->data, infotarget->length), in heim_ntlm_verify_ntlm2()