13(2005-06-09) 3(2005-06-09)
2
3
4
6 cmciConnect() - Create a CMCIClient object and connection
7
9 #include <cmci.h>
10
11 CMCIClient*
12 cmciConnect(constchar*hostName,constchar*scheme,
13 constchar*hostPort,constchar*CimUsername,
14 constchar*CimPassword,CMPIStatus*rc);
15
16 CMCIClient*
17 cmciConnect2(constchar*hostName,constchar*scheme,
18 constchar*hostPort,constchar*CimUsername,
19 intverifyMode,constchar*trustStore,
20 constchar*certFile,constchar*keyFile,
21 constchar*CimPassword,CMPIStatus*rc);
22
23
25 Create a CMCIClient object and initialize it with the CIMOM connection
26 hostname and port, the security credentials to log into the CIMOM, and
27 the internals for sending requests and receiving responses from the
28 CIMOM.
29
30 Arguments are the hostName and hostPort to connect, the CimUsername and
31 CimPassword credentials for authentication with the CIMOM, and a
32 pointer to an object to receive the CMPIStatus operation status.
33
34 The function cmciConnect2 has the same purpose but offers extra parame‐
35 ters to control SSL operations.
36
37 verifyMode specifies whether the server certificate for an SSL connec‐
38 tion is to be verified. If set to CMCI_VERIFY_NONE the server ceritifi‐
39 cat will not be verified, if set to CMCI_VERIFY_PEER it will be veri‐
40 fied agains the certificates in trustStore.
41
42 trustStore contains the name of a file containing CA or client certifi‐
43 cates against which the server certificate will be verified if verify‐
44 Mode is set to CMCI_VERIFY_PEER.
45
46 certFile specifies the name of a file containing a client certificate
47 which will be presented to the CIM server, if the CIM server implements
48 certificate-based client authentication. Must be set to NULL, if no
49 client certificates are available.
50
51 keyFile specifies the name of a file containing the private key for the
52 certificate specified via certFile. Must be set to NULL, if no client
53 certificates are available.
54
56 When successful the cmciConnect function returns a pointer to a dynami‐
57 cally allocated and initialized CMCIClient object with a successful
58 operation status code set. When unsuccessful it returns NULL and sets
59 rc object with the error code and corresponding error string.
60
63 CMCIClient *cc;
64
65 /* Setup a local conncetion to the CIMOM */
66 cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
67
68
71 Common Manageability Programming Interface (CMPI) - OpenGroup,
72 CMCIClient(3), CMPIStatus(3)
73
74
75
76SFCBroker Client Library sfcc 3(2005-06-09)