_PUBLIC_ void ndr_print_PAC_SIGNATURE_DATA(struct ndr_print *ndr, const char *name, const struct PAC_SIGNATURE_DATA *r) { ndr_print_struct(ndr, name, "PAC_SIGNATURE_DATA"); { uint32_t _flags_save_STRUCT = ndr->flags; ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX); ndr->depth++; ndr_print_uint32(ndr, "type", r->type); ndr_print_DATA_BLOB(ndr, "signature", r->signature); ndr->depth--; ndr->flags = _flags_save_STRUCT; } }
_PUBLIC_ void ndr_print_security_ace(struct ndr_print *ndr, const char *name, const struct security_ace *r) { ndr_print_struct(ndr, name, "security_ace"); ndr->depth++; ndr_print_security_ace_type(ndr, "type", r->type); ndr_print_security_ace_flags(ndr, "flags", r->flags); ndr_print_uint16(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_security_ace(r, ndr->iconv_convenience, ndr->flags):r->size); ndr_print_uint32(ndr, "access_mask", r->access_mask); ndr_print_set_switch_value(ndr, &r->object, r->type); ndr_print_security_ace_object_ctr(ndr, "object", &r->object); ndr_print_dom_sid(ndr, "trustee", &r->trustee); ndr->depth--; }
_PUBLIC_ void ndr_print_sec_desc_buf(struct ndr_print *ndr, const char *name, const struct sec_desc_buf *r) { ndr_print_struct(ndr, name, "sec_desc_buf"); ndr->depth++; ndr_print_uint32(ndr, "sd_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_security_descriptor(r->sd, ndr->iconv_convenience, ndr->flags):r->sd_size); ndr_print_ptr(ndr, "sd", r->sd); ndr->depth++; if (r->sd) { ndr_print_security_descriptor(ndr, "sd", r->sd); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_NL_AUTH_MESSAGE_BUFFER_REPLY(struct ndr_print *ndr, const char *name, const union NL_AUTH_MESSAGE_BUFFER_REPLY *r) { int level; level = ndr_print_get_switch_value(ndr, r); switch (level) { case NL_NEGOTIATE_RESPONSE: ndr_print_uint32(ndr, name, r->dummy); break; default: break; } }
_PUBLIC_ void ndr_print_security_secinfo(struct ndr_print *ndr, const char *name, uint32_t r) { ndr_print_uint32(ndr, name, r); ndr->depth++; ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_OWNER", SECINFO_OWNER, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_GROUP", SECINFO_GROUP, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_DACL", SECINFO_DACL, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_SACL", SECINFO_SACL, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_UNPROTECTED_SACL", SECINFO_UNPROTECTED_SACL, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_UNPROTECTED_DACL", SECINFO_UNPROTECTED_DACL, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_PROTECTED_SACL", SECINFO_PROTECTED_SACL, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SECINFO_PROTECTED_DACL", SECINFO_PROTECTED_DACL, r); ndr->depth--; }
void ndr_print_ads_auth_flags(struct ndr_print *ndr, const char *name, uint32_t r) { ndr_print_uint32(ndr, name, r); ndr->depth++; ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_DISABLE_KERBEROS", ADS_AUTH_DISABLE_KERBEROS, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_NO_BIND", ADS_AUTH_NO_BIND, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_ANON_BIND", ADS_AUTH_ANON_BIND, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SIMPLE_BIND", ADS_AUTH_SIMPLE_BIND, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_ALLOW_NTLMSSP", ADS_AUTH_ALLOW_NTLMSSP, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_SIGN", ADS_AUTH_SASL_SIGN, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_SEAL", ADS_AUTH_SASL_SEAL, r); ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "ADS_AUTH_SASL_FORCE", ADS_AUTH_SASL_FORCE, r); ndr->depth--; }
_PUBLIC_ void ndr_print_initshutdown_InitEx(struct ndr_print *ndr, const char *name, int flags, const struct initshutdown_InitEx *r) { ndr_print_struct(ndr, name, "initshutdown_InitEx"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "initshutdown_InitEx"); ndr->depth++; ndr_print_ptr(ndr, "hostname", r->in.hostname); ndr->depth++; if (r->in.hostname) { ndr_print_uint16(ndr, "hostname", *r->in.hostname); } ndr->depth--; ndr_print_ptr(ndr, "message", r->in.message); ndr->depth++; if (r->in.message) { ndr_print_lsa_StringLarge(ndr, "message", r->in.message); } ndr->depth--; ndr_print_uint32(ndr, "timeout", r->in.timeout); ndr_print_uint8(ndr, "force_apps", r->in.force_apps); ndr_print_uint8(ndr, "do_reboot", r->in.do_reboot); ndr_print_uint32(ndr, "reason", r->in.reason); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "initshutdown_InitEx"); ndr->depth++; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_echo_AddOne(struct ndr_print *ndr, const char *name, int flags, const struct echo_AddOne *r) { ndr_print_struct(ndr, name, "echo_AddOne"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "echo_AddOne"); ndr->depth++; ndr_print_uint32(ndr, "in_data", r->in.in_data); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "echo_AddOne"); ndr->depth++; ndr_print_ptr(ndr, "out_data", r->out.out_data); ndr->depth++; ndr_print_uint32(ndr, "out_data", *r->out.out_data); ndr->depth--; ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_notify_array(struct ndr_print *ndr, const char *name, const struct notify_array *r) { uint32_t cntr_depth_0; ndr_print_struct(ndr, name, "notify_array"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_uint32(ndr, "num_depths", r->num_depths); ndr->print(ndr, "%s: ARRAY(%d)", "depth", (int)r->num_depths); ndr->depth++; for (cntr_depth_0=0;cntr_depth_0<r->num_depths;cntr_depth_0++) { ndr_print_notify_depth(ndr, "depth", &r->depth[cntr_depth_0]); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_frsapi_SetDsPollingIntervalW(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_SetDsPollingIntervalW *r) { ndr_print_struct(ndr, name, "frsapi_SetDsPollingIntervalW"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "frsapi_SetDsPollingIntervalW"); ndr->depth++; ndr_print_uint32(ndr, "CurrentInterval", r->in.CurrentInterval); ndr_print_uint32(ndr, "DsPollingLongInterval", r->in.DsPollingLongInterval); ndr_print_uint32(ndr, "DsPollingShortInterval", r->in.DsPollingShortInterval); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "frsapi_SetDsPollingIntervalW"); ndr->depth++; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_echo_Surrounding(struct ndr_print *ndr, const char *name, const struct echo_Surrounding *r) { uint32_t cntr_surrounding_0; ndr_print_struct(ndr, name, "echo_Surrounding"); ndr->depth++; ndr_print_uint32(ndr, "x", r->x); ndr->print(ndr, "%s: ARRAY(%d)", "surrounding", (int)r->x); ndr->depth++; for (cntr_surrounding_0=0;cntr_surrounding_0<r->x;cntr_surrounding_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_surrounding_0) != -1) { ndr_print_uint16(ndr, "surrounding", r->surrounding[cntr_surrounding_0]); free(idx_0); } } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_tdb_xattrs(struct ndr_print *ndr, const char *name, const struct tdb_xattrs *r) { uint32_t cntr_xattrs_0; ndr_print_struct(ndr, name, "tdb_xattrs"); ndr->depth++; ndr_print_uint32(ndr, "num_xattrs", r->num_xattrs); ndr->print(ndr, "%s: ARRAY(%d)", "xattrs", (int)r->num_xattrs); ndr->depth++; for (cntr_xattrs_0=0;cntr_xattrs_0<r->num_xattrs;cntr_xattrs_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_xattrs_0) != -1) { ndr_print_tdb_xattr(ndr, "xattrs", &r->xattrs[cntr_xattrs_0]); free(idx_0); } } ndr->depth--; ndr->depth--; }
void ndr_print_winbindd_child(struct ndr_print *ndr, const char *name, const struct winbindd_child *r) { ndr_print_struct(ndr, name, "winbindd_child"); ndr->depth++; ndr_print_uint32(ndr, "pid", (uint32_t)r->pid); #if 0 ndr_print_winbindd_domain(ndr, "domain", r->domain); #else ndr_print_ptr(ndr, "domain", r->domain); #endif ndr_print_string(ndr, "logfilename", r->logfilename); /* struct fd_event event; */ ndr_print_ptr(ndr, "lockout_policy_event", r->lockout_policy_event); ndr_print_ptr(ndr, "table", r->table); ndr->depth--; }
_PUBLIC_ void ndr_print_notify_array(struct ndr_print *ndr, const char *name, const struct notify_array *r) { uint32_t cntr_depth_0; ndr_print_struct(ndr, name, "notify_array"); ndr->depth++; ndr_print_uint32(ndr, "num_depths", r->num_depths); ndr->print(ndr, "%s: ARRAY(%d)", "depth", (int)r->num_depths); ndr->depth++; for (cntr_depth_0=0;cntr_depth_0<r->num_depths;cntr_depth_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_depth_0) != -1) { ndr_print_notify_depth(ndr, "depth", &r->depth[cntr_depth_0]); free(idx_0); } } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_frsapi_Info(struct ndr_print *ndr, const char *name, const struct frsapi_Info *r) { ndr_print_struct(ndr, name, "frsapi_Info"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_uint32(ndr, "length", r->length); ndr_print_GUID(ndr, "guid", &r->guid); ndr_print_uint32(ndr, "length2", r->length2); ndr_print_uint32(ndr, "unknown1", r->unknown1); ndr_print_frsapi_InfoEnum(ndr, "level", r->level); ndr_print_uint32(ndr, "query_counter", r->query_counter); ndr_print_uint32(ndr, "unknown2", r->unknown2); ndr_print_uint32(ndr, "offset", r->offset); ndr_print_uint32(ndr, "blob_len", r->blob_len); ndr_print_DATA_BLOB(ndr, "blob", r->blob); ndr->depth--; }
_PUBLIC_ void ndr_print_drsuapi_DsReplicaOID(struct ndr_print *ndr, const char *name, const struct drsuapi_DsReplicaOID *r) { ndr_print_struct(ndr, name, "drsuapi_DsReplicaOID"); ndr->depth++; ndr_print_uint32(ndr, "length", r->length); ndr->print(ndr, "%-25s: length=%u", "oid", r->length); if (r->binary_oid) { char *partial_oid = NULL; DATA_BLOB oid_blob = data_blob_const(r->binary_oid, r->length); char *hex_str = data_blob_hex_string_upper(ndr, &oid_blob); ber_read_partial_OID_String(ndr, oid_blob, &partial_oid); ndr->depth++; ndr->print(ndr, "%-25s: 0x%s (%s)", "binary_oid", hex_str, partial_oid); ndr->depth--; talloc_free(hex_str); talloc_free(partial_oid); } ndr->depth--; }
_PUBLIC_ void ndr_print_trustAuthInOutBlob(struct ndr_print *ndr, const char *name, const struct trustAuthInOutBlob *r) { ndr_print_struct(ndr, name, "trustAuthInOutBlob"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "current", r->current); ndr->depth++; if (r->current) { ndr_print_AuthenticationInformationArray_with_count(ndr, "current", r->count, r->current); } ndr->depth--; ndr_print_ptr(ndr, "previous", r->previous); ndr->depth++; if (r->previous) { ndr_print_AuthenticationInformationArray_with_count(ndr, "previous", r->count, r->previous); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_pcap_data(struct ndr_print *ndr, const char *name, const struct pcap_data *r) { uint32_t cntr_printers_0; ndr_print_struct(ndr, name, "pcap_data"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_NTSTATUS(ndr, "status", r->status); ndr_print_uint32(ndr, "count", r->count); ndr->print(ndr, "%s: ARRAY(%d)", "printers", (int)r->count); ndr->depth++; for (cntr_printers_0=0; cntr_printers_0<r->count; cntr_printers_0++) { ndr_print_pcap_printer(ndr, "printers", &r->printers[cntr_printers_0]); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_security_token(struct ndr_print *ndr, const char *name, const struct security_token *r) { uint32_t cntr_sids_0; ndr_print_struct(ndr, name, "security_token"); ndr->depth++; ndr_print_ptr(ndr, "user_sid", r->user_sid); ndr->depth++; if (r->user_sid) { ndr_print_dom_sid(ndr, "user_sid", r->user_sid); } ndr->depth--; ndr_print_ptr(ndr, "group_sid", r->group_sid); ndr->depth++; if (r->group_sid) { ndr_print_dom_sid(ndr, "group_sid", r->group_sid); } ndr->depth--; ndr_print_uint32(ndr, "num_sids", r->num_sids); ndr->print(ndr, "%s: ARRAY(%d)", "sids", (int)r->num_sids); ndr->depth++; for (cntr_sids_0=0;cntr_sids_0<r->num_sids;cntr_sids_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_sids_0) != -1) { ndr_print_ptr(ndr, "sids", r->sids[cntr_sids_0]); ndr->depth++; if (r->sids[cntr_sids_0]) { ndr_print_dom_sid(ndr, "sids", r->sids[cntr_sids_0]); } ndr->depth--; free(idx_0); } } ndr->depth--; ndr_print_udlong(ndr, "privilege_mask", r->privilege_mask); ndr_print_ptr(ndr, "default_dacl", r->default_dacl); ndr->depth++; if (r->default_dacl) { ndr_print_security_acl(ndr, "default_dacl", r->default_dacl); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_security_acl(struct ndr_print *ndr, const char *name, const struct security_acl *r) { uint32_t cntr_aces_0; ndr_print_struct(ndr, name, "security_acl"); ndr->depth++; ndr_print_security_acl_revision(ndr, "revision", r->revision); ndr_print_uint16(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_security_acl(r, ndr->iconv_convenience, ndr->flags):r->size); ndr_print_uint32(ndr, "num_aces", r->num_aces); ndr->print(ndr, "%s: ARRAY(%d)", "aces", (int)r->num_aces); ndr->depth++; for (cntr_aces_0=0;cntr_aces_0<r->num_aces;cntr_aces_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_aces_0) != -1) { ndr_print_security_ace(ndr, "aces", &r->aces[cntr_aces_0]); free(idx_0); } } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_echo_SourceData(struct ndr_print *ndr, const char *name, int flags, const struct echo_SourceData *r) { ndr_print_struct(ndr, name, "echo_SourceData"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "echo_SourceData"); ndr->depth++; ndr_print_uint32(ndr, "len", r->in.len); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "echo_SourceData"); ndr->depth++; ndr_print_array_uint8(ndr, "data", r->out.data, r->in.len); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_rot_remove(struct ndr_print *ndr, const char *name, int flags, const struct rot_remove *r) { ndr_print_struct(ndr, name, "rot_remove"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "rot_remove"); ndr->depth++; ndr_print_uint32(ndr, "rotid", r->in.rotid); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "rot_remove"); ndr->depth++; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_xattr_DosStreams(struct ndr_print *ndr, const char *name, const struct xattr_DosStreams *r) { uint32_t cntr_streams_1; ndr_print_struct(ndr, name, "xattr_DosStreams"); ndr->depth++; ndr_print_uint32(ndr, "num_streams", r->num_streams); ndr_print_ptr(ndr, "streams", r->streams); ndr->depth++; if (r->streams) { ndr->print(ndr, "%s: ARRAY(%d)", "streams", (int)r->num_streams); ndr->depth++; for (cntr_streams_1=0;cntr_streams_1<r->num_streams;cntr_streams_1++) { char *idx_1=NULL; if (asprintf(&idx_1, "[%d]", cntr_streams_1) != -1) { ndr_print_xattr_DosStream(ndr, "streams", &r->streams[cntr_streams_1]); free(idx_1); } } ndr->depth--; } ndr->depth--; ndr->depth--; }
void ndr_print_drsuapi_DsReplicaObjectListItemEx(struct ndr_print *ndr, const char *name, const struct drsuapi_DsReplicaObjectListItemEx *r) { ndr_print_struct(ndr, name, "drsuapi_DsReplicaObjectListItemEx"); ndr->depth++; ndr_print_ptr(ndr, "next_object", r->next_object); ndr_print_drsuapi_DsReplicaObject(ndr, "object", &r->object); ndr_print_uint32(ndr, "is_nc_prefix", r->is_nc_prefix); ndr_print_ptr(ndr, "parent_object_guid", r->parent_object_guid); ndr->depth++; if (r->parent_object_guid) { ndr_print_GUID(ndr, "parent_object_guid", r->parent_object_guid); } ndr->depth--; ndr_print_ptr(ndr, "meta_data_ctr", r->meta_data_ctr); ndr->depth++; if (r->meta_data_ctr) { ndr_print_drsuapi_DsReplicaMetaDataCtr(ndr, "meta_data_ctr", r->meta_data_ctr); } ndr->depth--; ndr->depth--; if (r->next_object) { ndr_print_drsuapi_DsReplicaObjectListItemEx(ndr, "next_object", r->next_object); } }
_PUBLIC_ void ndr_print_PERF_INSTANCE_DEFINITION(struct ndr_print *ndr, const char *name, const struct PERF_INSTANCE_DEFINITION *r) { ndr_print_struct(ndr, name, "PERF_INSTANCE_DEFINITION"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_uint32(ndr, "ByteLength", r->ByteLength); ndr_print_uint32(ndr, "ParentObjectTitleIndex", r->ParentObjectTitleIndex); ndr_print_uint32(ndr, "ParentObjectTitlePointer", r->ParentObjectTitlePointer); ndr_print_uint32(ndr, "UniqueID", r->UniqueID); ndr_print_uint32(ndr, "NameOffset", r->NameOffset); ndr_print_uint32(ndr, "NameLength", r->NameLength); ndr_print_ptr(ndr, "data", r->data); ndr->depth++; if (r->data) { ndr_print_uint8(ndr, "data", *r->data); } ndr->depth--; ndr_print_PERF_COUNTER_BLOCK(ndr, "counter_data", &r->counter_data); ndr->depth--; }
_PUBLIC_ void ndr_print_RemoteActivation(struct ndr_print *ndr, const char *name, int flags, const struct RemoteActivation *r) { uint32_t cntr_pIIDs_1; uint32_t cntr_protseq_0; uint32_t cntr_ifaces_0; uint32_t cntr_results_0; ndr_print_struct(ndr, name, "RemoteActivation"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "RemoteActivation"); ndr->depth++; ndr_print_ORPCTHIS(ndr, "this_object", &r->in.this_object); ndr_print_GUID(ndr, "Clsid", &r->in.Clsid); ndr_print_ptr(ndr, "pwszObjectName", r->in.pwszObjectName); ndr->depth++; ndr_print_string(ndr, "pwszObjectName", r->in.pwszObjectName); ndr->depth--; ndr_print_ptr(ndr, "pObjectStorage", r->in.pObjectStorage); ndr->depth++; ndr_print_MInterfacePointer(ndr, "pObjectStorage", r->in.pObjectStorage); ndr->depth--; ndr_print_uint32(ndr, "ClientImpLevel", r->in.ClientImpLevel); ndr_print_uint32(ndr, "Mode", r->in.Mode); ndr_print_uint32(ndr, "Interfaces", r->in.Interfaces); ndr_print_ptr(ndr, "pIIDs", r->in.pIIDs); ndr->depth++; ndr->print(ndr, "%s: ARRAY(%d)", "pIIDs", (int)r->in.Interfaces); ndr->depth++; for (cntr_pIIDs_1=0;cntr_pIIDs_1<r->in.Interfaces;cntr_pIIDs_1++) { ndr_print_GUID(ndr, "pIIDs", &r->in.pIIDs[cntr_pIIDs_1]); } ndr->depth--; ndr->depth--; ndr_print_uint16(ndr, "num_protseqs", r->in.num_protseqs); ndr->print(ndr, "%s: ARRAY(%d)", "protseq", (int)r->in.num_protseqs); ndr->depth++; for (cntr_protseq_0=0;cntr_protseq_0<r->in.num_protseqs;cntr_protseq_0++) { ndr_print_uint16(ndr, "protseq", r->in.protseq[cntr_protseq_0]); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "RemoteActivation"); ndr->depth++; ndr_print_ptr(ndr, "that", r->out.that); ndr->depth++; ndr_print_ORPCTHAT(ndr, "that", r->out.that); ndr->depth--; ndr_print_ptr(ndr, "pOxid", r->out.pOxid); ndr->depth++; ndr_print_hyper(ndr, "pOxid", *r->out.pOxid); ndr->depth--; ndr_print_ptr(ndr, "pdsaOxidBindings", r->out.pdsaOxidBindings); ndr->depth++; ndr_print_DUALSTRINGARRAY(ndr, "pdsaOxidBindings", r->out.pdsaOxidBindings); ndr->depth--; ndr_print_ptr(ndr, "ipidRemUnknown", r->out.ipidRemUnknown); ndr->depth++; ndr_print_GUID(ndr, "ipidRemUnknown", r->out.ipidRemUnknown); ndr->depth--; ndr_print_ptr(ndr, "AuthnHint", r->out.AuthnHint); ndr->depth++; ndr_print_uint32(ndr, "AuthnHint", *r->out.AuthnHint); ndr->depth--; ndr_print_ptr(ndr, "ServerVersion", r->out.ServerVersion); ndr->depth++; ndr_print_COMVERSION(ndr, "ServerVersion", r->out.ServerVersion); ndr->depth--; ndr_print_ptr(ndr, "hr", r->out.hr); ndr->depth++; ndr_print_WERROR(ndr, "hr", *r->out.hr); ndr->depth--; ndr->print(ndr, "%s: ARRAY(%d)", "ifaces", (int)r->in.Interfaces); ndr->depth++; for (cntr_ifaces_0=0;cntr_ifaces_0<r->in.Interfaces;cntr_ifaces_0++) { ndr_print_ptr(ndr, "ifaces", r->out.ifaces[cntr_ifaces_0]); ndr->depth++; ndr_print_MInterfacePointer(ndr, "ifaces", r->out.ifaces[cntr_ifaces_0]); ndr->depth--; } ndr->depth--; ndr->print(ndr, "%s: ARRAY(%d)", "results", (int)r->in.Interfaces); ndr->depth++; for (cntr_results_0=0;cntr_results_0<r->in.Interfaces;cntr_results_0++) { ndr_print_WERROR(ndr, "results", r->out.results[cntr_results_0]); } ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
void ndr_print_ads_struct(struct ndr_print *ndr, const char *name, const struct ads_struct *r) { if (!r) { return; } ndr_print_struct(ndr, name, "ads_struct"); ndr->depth++; ndr_print_bool(ndr, "is_mine", r->is_mine); ndr_print_struct(ndr, name, "server"); ndr->depth++; ndr_print_string(ndr, "realm", r->server.realm); ndr_print_string(ndr, "workgroup", r->server.workgroup); ndr_print_string(ndr, "ldap_server", r->server.ldap_server); ndr_print_bool(ndr, "foreign", r->server.foreign); ndr->depth--; ndr_print_struct(ndr, name, "auth"); ndr->depth++; ndr_print_string(ndr, "realm", r->auth.realm); #ifdef DEBUG_PASSWORD ndr_print_string(ndr, "password", r->auth.password); #else ndr_print_string(ndr, "password", "(PASSWORD ommited)"); #endif ndr_print_string(ndr, "user_name", r->auth.user_name); ndr_print_string(ndr, "kdc_server", r->auth.kdc_server); ndr_print_ads_auth_flags(ndr, "flags", r->auth.flags); ndr_print_uint32(ndr, "time_offset", r->auth.time_offset); ndr_print_time_t(ndr, "tgt_expire", r->auth.tgt_expire); ndr_print_time_t(ndr, "tgs_expire", r->auth.tgs_expire); ndr_print_time_t(ndr, "renewable", r->auth.renewable); ndr->depth--; ndr_print_struct(ndr, name, "config"); ndr->depth++; ndr_print_netr_DsR_DcFlags(ndr, "flags", r->config.flags); ndr_print_string(ndr, "realm", r->config.realm); ndr_print_string(ndr, "bind_path", r->config.bind_path); ndr_print_string(ndr, "ldap_server_name", r->config.ldap_server_name); ndr_print_string(ndr, "server_site_name", r->config.server_site_name); ndr_print_string(ndr, "client_site_name", r->config.client_site_name); ndr_print_time_t(ndr, "current_time", r->config.current_time); ndr_print_string(ndr, "schema_path", r->config.schema_path); ndr_print_string(ndr, "config_path", r->config.config_path); ndr->depth--; #ifdef HAVE_LDAP ndr_print_struct(ndr, name, "ldap"); ndr->depth++; ndr_print_ptr(ndr, "ld", r->ldap.ld); ndr_print_sockaddr_storage(ndr, "ss", &r->ldap.ss); ndr_print_time_t(ndr, "last_attempt", r->ldap.last_attempt); ndr_print_uint32(ndr, "port", r->ldap.port); ndr_print_uint16(ndr, "wrap_type", r->ldap.wrap_type); #ifdef HAVE_LDAP_SASL_WRAPPING ndr_print_ptr(ndr, "sbiod", r->ldap.sbiod); #endif /* HAVE_LDAP_SASL_WRAPPING */ ndr_print_ptr(ndr, "mem_ctx", r->ldap.mem_ctx); ndr_print_ptr(ndr, "wrap_ops", r->ldap.wrap_ops); ndr_print_ptr(ndr, "wrap_private_data", r->ldap.wrap_private_data); ndr_print_struct(ndr, name, "in"); ndr->depth++; ndr_print_uint32(ndr, "ofs", r->ldap.in.ofs); ndr_print_uint32(ndr, "needed", r->ldap.in.needed); ndr_print_uint32(ndr, "left", r->ldap.in.left); ndr_print_uint32(ndr, "max_wrapped", r->ldap.in.max_wrapped); ndr_print_uint32(ndr, "min_wrapped", r->ldap.in.min_wrapped); ndr_print_uint32(ndr, "size", r->ldap.in.size); ndr_print_array_uint8(ndr, "buf", r->ldap.in.buf, r->ldap.in.size); ndr->depth--; ndr_print_struct(ndr, name, "out"); ndr->depth++; ndr_print_uint32(ndr, "ofs", r->ldap.out.ofs); ndr_print_uint32(ndr, "left", r->ldap.out.left); ndr_print_uint32(ndr, "max_unwrapped", r->ldap.out.max_unwrapped); ndr_print_uint32(ndr, "sig_size", r->ldap.out.sig_size); ndr_print_uint32(ndr, "size", r->ldap.out.size); ndr_print_array_uint8(ndr, "buf", r->ldap.out.buf, r->ldap.out.size); ndr->depth--; ndr->depth--; #endif /* HAVE_LDAP */ ndr->depth--; }
_PUBLIC_ void ndr_print_bkrp_BackupKey(struct ndr_print *ndr, const char *name, int flags, const struct bkrp_BackupKey *r) { ndr_print_struct(ndr, name, "bkrp_BackupKey"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { union bkrp_data_in_blob inblob; DATA_BLOB blob; uint32_t level; enum ndr_err_code ndr_err; ndr_print_struct(ndr, "in", "bkrp_BackupKey"); ndr->depth++; ndr_print_ptr(ndr, "guidActionAgent", r->in.guidActionAgent); ndr->depth++; ndr_print_GUID(ndr, "guidActionAgent", r->in.guidActionAgent); ndr->depth--; level = backupkeyguid_to_uint(r->in.guidActionAgent); blob.data = r->in.data_in; blob.length = r->in.data_in_len; ndr_err = ndr_pull_union_blob(&blob, ndr, &inblob, level, (ndr_pull_flags_fn_t)ndr_pull_bkrp_data_in_blob); ndr_print_ptr(ndr, "data_in", r->in.data_in); ndr->depth++; if (NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { ndr_print_bkrp_data_in_blob(ndr, "data_in", &inblob); } else { ndr_print_array_uint8(ndr, "data_in", r->in.data_in, r->in.data_in_len); } ndr->depth--; ndr_print_uint32(ndr, "data_in_len", r->in.data_in_len); ndr_print_uint32(ndr, "param", r->in.param); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "bkrp_BackupKey"); ndr->depth++; ndr_print_ptr(ndr, "data_out", r->out.data_out); ndr->depth++; ndr_print_ptr(ndr, "data_out", *r->out.data_out); ndr->depth++; if (*r->out.data_out) { ndr_print_array_uint8(ndr, "data_out", *r->out.data_out, *r->out.data_out_len); } ndr->depth--; ndr->depth--; ndr_print_ptr(ndr, "data_out_len", r->out.data_out_len); ndr->depth++; ndr_print_uint32(ndr, "data_out_len", *r->out.data_out_len); ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_PERF_OBJECT_TYPE(struct ndr_print *ndr, const char *name, const struct PERF_OBJECT_TYPE *r) { uint32_t cntr_counters_0; uint32_t cntr_instances_0; ndr_print_struct(ndr, name, "PERF_OBJECT_TYPE"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_uint32(ndr, "TotalByteLength", r->TotalByteLength); ndr_print_uint32(ndr, "DefinitionLength", r->DefinitionLength); ndr_print_uint32(ndr, "HeaderLength", r->HeaderLength); ndr_print_uint32(ndr, "ObjectNameTitleIndex", r->ObjectNameTitleIndex); ndr_print_uint32(ndr, "ObjectNameTitlePointer", r->ObjectNameTitlePointer); ndr_print_uint32(ndr, "ObjectHelpTitleIndex", r->ObjectHelpTitleIndex); ndr_print_uint32(ndr, "ObjectHelpTitlePointer", r->ObjectHelpTitlePointer); ndr_print_uint32(ndr, "DetailLevel", r->DetailLevel); ndr_print_uint32(ndr, "NumCounters", r->NumCounters); ndr_print_uint32(ndr, "DefaultCounter", r->DefaultCounter); ndr_print_uint32(ndr, "NumInstances", r->NumInstances); ndr_print_uint32(ndr, "CodePage", r->CodePage); ndr_print_hyper(ndr, "PerfTime", r->PerfTime); ndr_print_hyper(ndr, "PerfFreq", r->PerfFreq); ndr->print(ndr, "%s: ARRAY(%d)", "counters", (int)r->NumCounters); ndr->depth++; for (cntr_counters_0=0;cntr_counters_0<r->NumCounters;cntr_counters_0++) { ndr_print_PERF_COUNTER_DEFINITION(ndr, "counters", &r->counters[cntr_counters_0]); } ndr->depth--; ndr->print(ndr, "%s: ARRAY(%d)", "instances", (int)r->NumInstances); ndr->depth++; for (cntr_instances_0=0;cntr_instances_0<r->NumInstances;cntr_instances_0++) { ndr_print_PERF_INSTANCE_DEFINITION(ndr, "instances", &r->instances[cntr_instances_0]); } ndr->depth--; ndr_print_PERF_COUNTER_BLOCK(ndr, "counter_data", &r->counter_data); ndr->depth--; }