Changeset 988 for vendor/current/source4/lib/com
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/source4/lib/com
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/lib/com/classes/simple.c
r414 r988 22 22 #include "lib/com/com.h" 23 23 #include "librpc/gen_ndr/com_dcom.h" 24 25 NTSTATUS com_simple_init(void); 24 26 25 27 static struct IClassFactory_vtable simple_classobject_vtable; -
vendor/current/source4/lib/com/dcom/dcom.h
r414 r988 51 51 struct dcom_object_exporter *object_exporter_by_oxid(struct com_context *ctx, uint64_t oxid); 52 52 struct dcom_object_exporter *object_exporter_by_ip(struct com_context *ctx, struct IUnknown *ip); 53 WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct IUnknown ***ip, WERROR*results);53 WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct IUnknown ***ip, HRESULT *results); 54 54 WERROR dcom_get_class_object(struct com_context *ctx, struct GUID *clsid, const char *server, struct GUID *iid, struct IUnknown **ip); 55 55 NTSTATUS dcom_get_pipe(struct IUnknown *iface, struct dcerpc_pipe **pp); -
vendor/current/source4/lib/com/dcom/main.c
r740 r988 37 37 static NTSTATUS dcerpc_binding_from_STRINGBINDING(TALLOC_CTX *mem_ctx, struct dcerpc_binding **b_out, struct STRINGBINDING *bd) 38 38 { 39 char *host, *endpoint; 39 char *tstr; 40 char *bstr; 41 enum dcerpc_transport_t transport; 40 42 struct dcerpc_binding *b; 41 43 42 b = talloc_zero(mem_ctx, struct dcerpc_binding); 43 if (!b) { 44 transport = dcerpc_transport_by_endpoint_protocol(bd->wTowerId); 45 if (transport == NCA_UNKNOWN) { 46 DEBUG(1, ("Can't find transport match endpoint protocol %d\n", bd->wTowerId)); 47 return NT_STATUS_NOT_SUPPORTED; 48 } 49 50 tstr = derpc_transport_string_by_transport(transport); 51 bstr = talloc_asprintf(mem_ctx, "%s:%s", tstr, bd->NetworkAddr); 52 if (bstr == NULL) { 44 53 return NT_STATUS_NO_MEMORY; 45 54 } 46 47 b->transport = dcerpc_transport_by_endpoint_protocol(bd->wTowerId); 48 49 if (b->transport == -1) { 50 DEBUG(1, ("Can't find transport match endpoint protocol %d\n", bd->wTowerId)); 51 talloc_free(b); 52 return NT_STATUS_NOT_SUPPORTED; 53 } 54 55 host = talloc_strdup(b, bd->NetworkAddr); 56 endpoint = strchr(host, '['); 57 58 if (endpoint) { 59 *endpoint = '\0'; 60 endpoint++; 61 62 endpoint[strlen(endpoint)-1] = '\0'; 63 } 64 65 b->host = host; 66 b->endpoint = talloc_strdup(b, endpoint); 55 56 status = dcerpc_parse_binding(mem_ctx, bstr, &b); 57 TALLOC_FREE(bstr); 58 if (!NT_STATUS_IS_OK(status)) { 59 return status; 60 } 67 61 68 62 *b_out = b; … … 247 241 } 248 242 249 WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct IUnknown ***ip, WERROR*results)243 WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct IUnknown ***ip, HRESULT *results) 250 244 { 251 245 uint16_t protseq[] = DCOM_NEGOTIATED_PROTOCOLS; … … 256 250 struct DUALSTRINGARRAY *pds; 257 251 int i; 258 WERRORhr;252 HRESULT hr; 259 253 uint64_t oxid; 260 254 struct GUID ipidRemUnknown; … … 308 302 goto end; 309 303 } 310 311 if(! W_ERROR_IS_OK(hr)) {304 305 if(!HRES_IS_OK(hr)) { 312 306 goto end; 313 307 } -
vendor/current/source4/lib/com/main.c
r740 r988 29 29 *ctx = talloc(NULL, struct com_context); 30 30 if (event_ctx == NULL) { 31 event_ctx = event_context_init(*ctx);31 event_ctx = samba_tevent_context_init(*ctx); 32 32 } 33 33 (*ctx)->event_ctx = event_ctx; -
vendor/current/source4/lib/com/pycom.c
r740 r988 23 23 #include "librpc/ndr/libndr.h" 24 24 #include "libcli/util/pyerrors.h" 25 26 void initcom(void); 25 27 26 28 static struct com_context *py_com_ctx = NULL; /* FIXME: evil global */ -
vendor/current/source4/lib/com/tables.c
r478 r988 70 70 71 71 if (!f) { 72 dlclose(mod); 72 73 return NULL; 73 74 } -
vendor/current/source4/lib/com/wscript_build
r740 r988 3 3 bld.SAMBA_SUBSYSTEM('COM', 4 4 source='tables.c rot.c main.c', 5 allow_warnings=True, 5 6 deps='samba-util samba-hostconfig events ndr NDR_DCOM' 6 7 ) … … 20 21 bld.SAMBA_MODULE('com_simple', 21 22 source='classes/simple.c', 23 allow_warnings=True, 22 24 deps='talloc', 23 25 subsystem='COM',
Note:
See TracChangeset
for help on using the changeset viewer.