2 * Unix SMB/CIFS implementation.
3 * RPC Pipe client / server routines
4 * Copyright (C) Andrew Tridgell 1992-1997,
5 * Copyright (C) Luke Kenneth Casson Leighton 1996-1997,
6 * Copyright (C) Paul Ashton 1997.
7 * Copyright (C) Jeremy Allison 1999.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
26 #define DBGC_CLASS DBGC_RPC_PARSE
28 /*******************************************************************
29 interface/version dce/rpc pipe identification
30 ********************************************************************/
32 #define TRANS_SYNT_V2 \
35 0x8a885d04, 0x1ceb, 0x11c9, \
38 0x2b, 0x10, 0x48, 0x60 } \
42 #define SYNT_NETLOGON_V2 \
45 0x8a885d04, 0x1ceb, 0x11c9, \
48 0x2b, 0x10, 0x48, 0x60 } \
52 #define SYNT_WKSSVC_V1 \
55 0x6bffd098, 0xa112, 0x3610, \
58 0xf8, 0x7e, 0x34, 0x5a } \
62 #define SYNT_SRVSVC_V3 \
65 0x4b324fc8, 0x1670, 0x01d3, \
68 0xbf, 0x6e, 0xe1, 0x88 } \
72 #define SYNT_LSARPC_V0 \
75 0x12345778, 0x1234, 0xabcd, \
78 0x45, 0x67, 0x89, 0xab } \
82 #define SYNT_LSARPC_V0_DS \
85 0x3919286a, 0xb10c, 0x11d0, \
88 0x4f, 0xd9, 0x2e, 0xf5 } \
92 #define SYNT_SAMR_V1 \
95 0x12345778, 0x1234, 0xabcd, \
98 0x45, 0x67, 0x89, 0xac } \
102 #define SYNT_NETLOGON_V1 \
105 0x12345678, 0x1234, 0xabcd, \
108 0x45, 0x67, 0xcf, 0xfb } \
112 #define SYNT_WINREG_V1 \
115 0x338cd001, 0x2244, 0x31f1, \
118 0x38, 0x00, 0x10, 0x03 } \
122 #define SYNT_SPOOLSS_V1 \
125 0x12345678, 0x1234, 0xabcd, \
128 0x45, 0x67, 0x89, 0xab } \
132 #define SYNT_NONE_V0 \
138 0x00, 0x00, 0x00, 0x00 } \
142 #define SYNT_NETDFS_V3 \
145 0x4fc742e0, 0x4a10, 0x11cf, \
148 0x00, 0x4a, 0xe6, 0x73 } \
152 #define SYNT_ECHO_V1 \
155 0x60a15ec5, 0x4de8, 0x11d7, \
158 0x56, 0xa2, 0x01, 0x82 } \
162 #define SYNT_SHUTDOWN_V1 \
165 0x894de0c0, 0x0d55, 0x11d3, \
168 0x4f, 0xa3, 0x21, 0xa1 } \
172 #define SYNT_SVCCTL_V2 \
175 0x367abb81, 0x9844, 0x35f1, \
178 0x38, 0x00, 0x10, 0x03 } \
183 #define SYNT_EVENTLOG_V0 \
186 0x82273fdc, 0xe32a, 0x18c3, \
189 0x29, 0xdc, 0x23, 0xea } \
193 #define SYNT_NTSVCS_V1 \
196 0x8d9f4e40, 0xa03d, 0x11ce, \
199 0x3e, 0x30, 0x05, 0x1b } \
204 * IMPORTANT!! If you update this structure, make sure to
205 * update the index #defines in smb.h.
208 const struct pipe_id_info pipe_names [] =
210 /* client pipe , abstract syntax , server pipe , transfer syntax */
211 { PIPE_LSARPC , SYNT_LSARPC_V0 , PIPE_LSASS , TRANS_SYNT_V2 },
212 { PIPE_LSARPC , SYNT_LSARPC_V0_DS , PIPE_LSASS , TRANS_SYNT_V2 },
213 { PIPE_SAMR , SYNT_SAMR_V1 , PIPE_LSASS , TRANS_SYNT_V2 },
214 { PIPE_NETLOGON, SYNT_NETLOGON_V1 , PIPE_LSASS , TRANS_SYNT_V2 },
215 { PIPE_SRVSVC , SYNT_SRVSVC_V3 , PIPE_NTSVCS , TRANS_SYNT_V2 },
216 { PIPE_WKSSVC , SYNT_WKSSVC_V1 , PIPE_NTSVCS , TRANS_SYNT_V2 },
217 { PIPE_WINREG , SYNT_WINREG_V1 , PIPE_WINREG , TRANS_SYNT_V2 },
218 { PIPE_SPOOLSS , SYNT_SPOOLSS_V1 , PIPE_SPOOLSS , TRANS_SYNT_V2 },
219 { PIPE_NETDFS , SYNT_NETDFS_V3 , PIPE_NETDFS , TRANS_SYNT_V2 },
220 { PIPE_ECHO , SYNT_ECHO_V1 , PIPE_ECHO , TRANS_SYNT_V2 },
221 { PIPE_SHUTDOWN, SYNT_SHUTDOWN_V1 , PIPE_SHUTDOWN , TRANS_SYNT_V2 },
222 { PIPE_SVCCTL , SYNT_SVCCTL_V2 , PIPE_NTSVCS , TRANS_SYNT_V2 },
223 { PIPE_EVENTLOG, SYNT_EVENTLOG_V0 , PIPE_EVENTLOG , TRANS_SYNT_V2 },
224 { PIPE_NTSVCS , SYNT_NTSVCS_V1 , PIPE_NTSVCS , TRANS_SYNT_V2 },
225 { NULL , SYNT_NONE_V0 , NULL , SYNT_NONE_V0 }
228 /****************************************************************************
229 Return the pipe name from the index.
230 ****************************************************************************/
232 const char *cli_get_pipe_name(int pipe_idx)
234 return &pipe_names[pipe_idx].client_pipe[5];
237 /****************************************************************************
238 Return the pipe idx from the syntax.
239 ****************************************************************************/
240 int cli_get_pipe_idx(const RPC_IFACE *syntax)
243 for (i = 0; pipe_names[i].client_pipe; i++) {
244 if (GUID_equal(&pipe_names[i].abstr_syntax.uuid, &syntax->uuid) &&
245 pipe_names[i].abstr_syntax.version == syntax->version)
252 /*******************************************************************
253 Inits an RPC_HDR structure.
254 ********************************************************************/
256 void init_rpc_hdr(RPC_HDR *hdr, enum RPC_PKT_TYPE pkt_type, uint8 flags,
257 uint32 call_id, int data_len, int auth_len)
259 hdr->major = 5; /* RPC version 5 */
260 hdr->minor = 0; /* minor version 0 */
261 hdr->pkt_type = pkt_type; /* RPC packet type */
262 hdr->flags = flags; /* dce/rpc flags */
263 hdr->pack_type[0] = 0x10; /* little-endian data representation */
264 hdr->pack_type[1] = 0; /* packed data representation */
265 hdr->pack_type[2] = 0; /* packed data representation */
266 hdr->pack_type[3] = 0; /* packed data representation */
267 hdr->frag_len = data_len; /* fragment length, fill in later */
268 hdr->auth_len = auth_len; /* authentication length */
269 hdr->call_id = call_id; /* call identifier - match incoming RPC */
272 /*******************************************************************
273 Reads or writes an RPC_HDR structure.
274 ********************************************************************/
276 bool smb_io_rpc_hdr(const char *desc, RPC_HDR *rpc, prs_struct *ps, int depth)
281 prs_debug(ps, depth, desc, "smb_io_rpc_hdr");
284 if(!prs_uint8 ("major ", ps, depth, &rpc->major))
287 if(!prs_uint8 ("minor ", ps, depth, &rpc->minor))
289 if(!prs_uint8 ("pkt_type ", ps, depth, &rpc->pkt_type))
291 if(!prs_uint8 ("flags ", ps, depth, &rpc->flags))
294 /* We always marshall in little endian format. */
296 rpc->pack_type[0] = 0x10;
298 if(!prs_uint8("pack_type0", ps, depth, &rpc->pack_type[0]))
300 if(!prs_uint8("pack_type1", ps, depth, &rpc->pack_type[1]))
302 if(!prs_uint8("pack_type2", ps, depth, &rpc->pack_type[2]))
304 if(!prs_uint8("pack_type3", ps, depth, &rpc->pack_type[3]))
308 * If reading and pack_type[0] == 0 then the data is in big-endian
309 * format. Set the flag in the prs_struct to specify reverse-endainness.
312 if (UNMARSHALLING(ps) && rpc->pack_type[0] == 0) {
313 DEBUG(10,("smb_io_rpc_hdr: PDU data format is big-endian. Setting flag.\n"));
314 prs_set_endian_data(ps, RPC_BIG_ENDIAN);
317 if(!prs_uint16("frag_len ", ps, depth, &rpc->frag_len))
319 if(!prs_uint16("auth_len ", ps, depth, &rpc->auth_len))
321 if(!prs_uint32("call_id ", ps, depth, &rpc->call_id))
326 /*******************************************************************
327 Reads or writes an RPC_IFACE structure.
328 ********************************************************************/
330 static bool smb_io_rpc_iface(const char *desc, RPC_IFACE *ifc, prs_struct *ps, int depth)
335 prs_debug(ps, depth, desc, "smb_io_rpc_iface");
341 if (!smb_io_uuid( "uuid", &ifc->uuid, ps, depth))
344 if(!prs_uint32 ("version", ps, depth, &ifc->if_version))
350 /*******************************************************************
351 Inits an RPC_ADDR_STR structure.
352 ********************************************************************/
354 static void init_rpc_addr_str(RPC_ADDR_STR *str, const char *name)
356 str->len = strlen(name) + 1;
357 fstrcpy(str->str, name);
360 /*******************************************************************
361 Reads or writes an RPC_ADDR_STR structure.
362 ********************************************************************/
364 static bool smb_io_rpc_addr_str(const char *desc, RPC_ADDR_STR *str, prs_struct *ps, int depth)
369 prs_debug(ps, depth, desc, "smb_io_rpc_addr_str");
374 if(!prs_uint16 ( "len", ps, depth, &str->len))
376 if(!prs_uint8s (True, "str", ps, depth, (uchar*)str->str, MIN(str->len, sizeof(str->str)) ))
381 /*******************************************************************
382 Inits an RPC_HDR_BBA structure.
383 ********************************************************************/
385 static void init_rpc_hdr_bba(RPC_HDR_BBA *bba, uint16 max_tsize, uint16 max_rsize, uint32 assoc_gid)
387 bba->max_tsize = max_tsize; /* maximum transmission fragment size (0x1630) */
388 bba->max_rsize = max_rsize; /* max receive fragment size (0x1630) */
389 bba->assoc_gid = assoc_gid; /* associated group id (0x0) */
392 /*******************************************************************
393 Reads or writes an RPC_HDR_BBA structure.
394 ********************************************************************/
396 static bool smb_io_rpc_hdr_bba(const char *desc, RPC_HDR_BBA *rpc, prs_struct *ps, int depth)
401 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_bba");
404 if(!prs_uint16("max_tsize", ps, depth, &rpc->max_tsize))
406 if(!prs_uint16("max_rsize", ps, depth, &rpc->max_rsize))
408 if(!prs_uint32("assoc_gid", ps, depth, &rpc->assoc_gid))
413 /*******************************************************************
414 Inits an RPC_CONTEXT structure.
415 Note the transfer pointer must remain valid until this is marshalled.
416 ********************************************************************/
418 void init_rpc_context(RPC_CONTEXT *rpc_ctx, uint16 context_id, RPC_IFACE *abstract, RPC_IFACE *transfer)
420 rpc_ctx->context_id = context_id ; /* presentation context identifier (0x0) */
421 rpc_ctx->num_transfer_syntaxes = 1 ; /* the number of syntaxes (has always been 1?)(0x1) */
423 /* num and vers. of interface client is using */
424 rpc_ctx->abstract = *abstract;
426 /* vers. of interface to use for replies */
427 rpc_ctx->transfer = transfer;
430 /*******************************************************************
431 Inits an RPC_HDR_RB structure.
432 Note the context pointer must remain valid until this is marshalled.
433 ********************************************************************/
435 void init_rpc_hdr_rb(RPC_HDR_RB *rpc,
436 uint16 max_tsize, uint16 max_rsize, uint32 assoc_gid,
437 RPC_CONTEXT *context)
439 init_rpc_hdr_bba(&rpc->bba, max_tsize, max_rsize, assoc_gid);
441 rpc->num_contexts = 1;
442 rpc->rpc_context = context;
445 /*******************************************************************
446 Reads or writes an RPC_CONTEXT structure.
447 ********************************************************************/
449 bool smb_io_rpc_context(const char *desc, RPC_CONTEXT *rpc_ctx, prs_struct *ps, int depth)
458 if(!prs_uint16("context_id ", ps, depth, &rpc_ctx->context_id ))
460 if(!prs_uint8 ("num_transfer_syntaxes", ps, depth, &rpc_ctx->num_transfer_syntaxes))
463 /* num_transfer_syntaxes must not be zero. */
464 if (rpc_ctx->num_transfer_syntaxes == 0)
467 if(!smb_io_rpc_iface("", &rpc_ctx->abstract, ps, depth))
470 if (UNMARSHALLING(ps)) {
471 if (!(rpc_ctx->transfer = PRS_ALLOC_MEM(ps, RPC_IFACE, rpc_ctx->num_transfer_syntaxes))) {
476 for (i = 0; i < rpc_ctx->num_transfer_syntaxes; i++ ) {
477 if (!smb_io_rpc_iface("", &rpc_ctx->transfer[i], ps, depth))
483 /*******************************************************************
484 Reads or writes an RPC_HDR_RB structure.
485 ********************************************************************/
487 bool smb_io_rpc_hdr_rb(const char *desc, RPC_HDR_RB *rpc, prs_struct *ps, int depth)
494 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_rb");
497 if(!smb_io_rpc_hdr_bba("", &rpc->bba, ps, depth))
500 if(!prs_uint8("num_contexts", ps, depth, &rpc->num_contexts))
503 /* 3 pad bytes following - will be mopped up by the prs_align in smb_io_rpc_context(). */
505 /* num_contexts must not be zero. */
506 if (rpc->num_contexts == 0)
509 if (UNMARSHALLING(ps)) {
510 if (!(rpc->rpc_context = PRS_ALLOC_MEM(ps, RPC_CONTEXT, rpc->num_contexts))) {
515 for (i = 0; i < rpc->num_contexts; i++ ) {
516 if (!smb_io_rpc_context("", &rpc->rpc_context[i], ps, depth))
523 /*******************************************************************
524 Inits an RPC_RESULTS structure.
526 lkclXXXX only one reason at the moment!
527 ********************************************************************/
529 static void init_rpc_results(RPC_RESULTS *res,
530 uint8 num_results, uint16 result, uint16 reason)
532 res->num_results = num_results; /* the number of results (0x01) */
533 res->result = result ; /* result (0x00 = accept) */
534 res->reason = reason ; /* reason (0x00 = no reason specified) */
537 /*******************************************************************
538 Reads or writes an RPC_RESULTS structure.
540 lkclXXXX only one reason at the moment!
541 ********************************************************************/
543 static bool smb_io_rpc_results(const char *desc, RPC_RESULTS *res, prs_struct *ps, int depth)
548 prs_debug(ps, depth, desc, "smb_io_rpc_results");
554 if(!prs_uint8 ("num_results", ps, depth, &res->num_results))
560 if(!prs_uint16("result ", ps, depth, &res->result))
562 if(!prs_uint16("reason ", ps, depth, &res->reason))
567 /*******************************************************************
568 Init an RPC_HDR_BA structure.
570 lkclXXXX only one reason at the moment!
572 ********************************************************************/
574 void init_rpc_hdr_ba(RPC_HDR_BA *rpc,
575 uint16 max_tsize, uint16 max_rsize, uint32 assoc_gid,
576 const char *pipe_addr,
577 uint8 num_results, uint16 result, uint16 reason,
580 init_rpc_hdr_bba (&rpc->bba, max_tsize, max_rsize, assoc_gid);
581 init_rpc_addr_str(&rpc->addr, pipe_addr);
582 init_rpc_results (&rpc->res, num_results, result, reason);
584 /* the transfer syntax from the request */
585 memcpy(&rpc->transfer, transfer, sizeof(rpc->transfer));
588 /*******************************************************************
589 Reads or writes an RPC_HDR_BA structure.
590 ********************************************************************/
592 bool smb_io_rpc_hdr_ba(const char *desc, RPC_HDR_BA *rpc, prs_struct *ps, int depth)
597 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_ba");
600 if(!smb_io_rpc_hdr_bba("", &rpc->bba, ps, depth))
602 if(!smb_io_rpc_addr_str("", &rpc->addr, ps, depth))
604 if(!smb_io_rpc_results("", &rpc->res, ps, depth))
606 if(!smb_io_rpc_iface("", &rpc->transfer, ps, depth))
611 /*******************************************************************
612 Init an RPC_HDR_REQ structure.
613 ********************************************************************/
615 void init_rpc_hdr_req(RPC_HDR_REQ *hdr, uint32 alloc_hint, uint16 opnum)
617 hdr->alloc_hint = alloc_hint; /* allocation hint */
618 hdr->context_id = 0; /* presentation context identifier */
619 hdr->opnum = opnum; /* opnum */
622 /*******************************************************************
623 Reads or writes an RPC_HDR_REQ structure.
624 ********************************************************************/
626 bool smb_io_rpc_hdr_req(const char *desc, RPC_HDR_REQ *rpc, prs_struct *ps, int depth)
631 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_req");
634 if(!prs_uint32("alloc_hint", ps, depth, &rpc->alloc_hint))
636 if(!prs_uint16("context_id", ps, depth, &rpc->context_id))
638 if(!prs_uint16("opnum ", ps, depth, &rpc->opnum))
643 /*******************************************************************
644 Reads or writes an RPC_HDR_RESP structure.
645 ********************************************************************/
647 bool smb_io_rpc_hdr_resp(const char *desc, RPC_HDR_RESP *rpc, prs_struct *ps, int depth)
652 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_resp");
655 if(!prs_uint32("alloc_hint", ps, depth, &rpc->alloc_hint))
657 if(!prs_uint16("context_id", ps, depth, &rpc->context_id))
659 if(!prs_uint8 ("cancel_ct ", ps, depth, &rpc->cancel_count))
661 if(!prs_uint8 ("reserved ", ps, depth, &rpc->reserved))
666 /*******************************************************************
667 Reads or writes an RPC_HDR_FAULT structure.
668 ********************************************************************/
670 bool smb_io_rpc_hdr_fault(const char *desc, RPC_HDR_FAULT *rpc, prs_struct *ps, int depth)
675 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_fault");
678 if(!prs_dcerpc_status("status ", ps, depth, &rpc->status))
680 if(!prs_uint32("reserved", ps, depth, &rpc->reserved))
686 /*******************************************************************
687 Inits an RPC_HDR_AUTH structure.
688 ********************************************************************/
690 void init_rpc_hdr_auth(RPC_HDR_AUTH *rai,
691 uint8 auth_type, uint8 auth_level,
693 uint32 auth_context_id)
695 rai->auth_type = auth_type;
696 rai->auth_level = auth_level;
697 rai->auth_pad_len = auth_pad_len;
698 rai->auth_reserved = 0;
699 rai->auth_context_id = auth_context_id;
702 /*******************************************************************
703 Reads or writes an RPC_HDR_AUTH structure.
704 ********************************************************************/
706 bool smb_io_rpc_hdr_auth(const char *desc, RPC_HDR_AUTH *rai, prs_struct *ps, int depth)
711 prs_debug(ps, depth, desc, "smb_io_rpc_hdr_auth");
717 if(!prs_uint8 ("auth_type ", ps, depth, &rai->auth_type))
719 if(!prs_uint8 ("auth_level ", ps, depth, &rai->auth_level))
721 if(!prs_uint8 ("auth_pad_len ", ps, depth, &rai->auth_pad_len))
723 if(!prs_uint8 ("auth_reserved", ps, depth, &rai->auth_reserved))
725 if(!prs_uint32("auth_context_id", ps, depth, &rai->auth_context_id))
731 /*******************************************************************
732 Checks an RPC_AUTH_VERIFIER structure.
733 ********************************************************************/
735 bool rpc_auth_verifier_chk(RPC_AUTH_VERIFIER *rav,
736 const char *signature, uint32 msg_type)
738 return (strequal(rav->signature, signature) && rav->msg_type == msg_type);
741 /*******************************************************************
742 Inits an RPC_AUTH_VERIFIER structure.
743 ********************************************************************/
745 void init_rpc_auth_verifier(RPC_AUTH_VERIFIER *rav,
746 const char *signature, uint32 msg_type)
748 fstrcpy(rav->signature, signature); /* "NTLMSSP" */
749 rav->msg_type = msg_type; /* NTLMSSP_MESSAGE_TYPE */
752 /*******************************************************************
753 Reads or writes an RPC_AUTH_VERIFIER structure.
754 ********************************************************************/
756 bool smb_io_rpc_auth_verifier(const char *desc, RPC_AUTH_VERIFIER *rav, prs_struct *ps, int depth)
761 prs_debug(ps, depth, desc, "smb_io_rpc_auth_verifier");
765 if(!prs_string("signature", ps, depth, rav->signature,
766 sizeof(rav->signature)))
768 if(!prs_uint32("msg_type ", ps, depth, &rav->msg_type)) /* NTLMSSP_MESSAGE_TYPE */
774 /*******************************************************************
775 This parses an RPC_AUTH_VERIFIER for schannel. I think
776 ********************************************************************/
778 bool smb_io_rpc_schannel_verifier(const char *desc, RPC_AUTH_VERIFIER *rav, prs_struct *ps, int depth)
783 prs_debug(ps, depth, desc, "smb_io_rpc_schannel_verifier");
786 if(!prs_string("signature", ps, depth, rav->signature, sizeof(rav->signature)))
788 if(!prs_uint32("msg_type ", ps, depth, &rav->msg_type))
794 /*******************************************************************
795 creates an RPC_AUTH_SCHANNEL_NEG structure.
796 ********************************************************************/
798 void init_rpc_auth_schannel_neg(RPC_AUTH_SCHANNEL_NEG *neg,
799 const char *domain, const char *myname)
803 fstrcpy(neg->domain, domain);
804 fstrcpy(neg->myname, myname);
807 /*******************************************************************
808 Reads or writes an RPC_AUTH_SCHANNEL_NEG structure.
809 ********************************************************************/
811 bool smb_io_rpc_auth_schannel_neg(const char *desc, RPC_AUTH_SCHANNEL_NEG *neg,
812 prs_struct *ps, int depth)
817 prs_debug(ps, depth, desc, "smb_io_rpc_auth_schannel_neg");
823 if(!prs_uint32("type1", ps, depth, &neg->type1))
825 if(!prs_uint32("type2", ps, depth, &neg->type2))
827 if(!prs_string("domain ", ps, depth, neg->domain, sizeof(neg->domain)))
829 if(!prs_string("myname ", ps, depth, neg->myname, sizeof(neg->myname)))
835 /*******************************************************************
836 reads or writes an RPC_AUTH_SCHANNEL_CHK structure.
837 ********************************************************************/
839 bool smb_io_rpc_auth_schannel_chk(const char *desc, int auth_len,
840 RPC_AUTH_SCHANNEL_CHK * chk,
841 prs_struct *ps, int depth)
846 prs_debug(ps, depth, desc, "smb_io_rpc_auth_schannel_chk");
849 if ( !prs_uint8s(False, "sig ", ps, depth, chk->sig, sizeof(chk->sig)) )
852 if ( !prs_uint8s(False, "seq_num", ps, depth, chk->seq_num, sizeof(chk->seq_num)) )
855 if ( !prs_uint8s(False, "packet_digest", ps, depth, chk->packet_digest, sizeof(chk->packet_digest)) )
858 if ( auth_len == RPC_AUTH_SCHANNEL_SIGN_OR_SEAL_CHK_LEN ) {
859 if ( !prs_uint8s(False, "confounder", ps, depth, chk->confounder, sizeof(chk->confounder)) )