This file is indexed.

/usr/include/openwsman/cpp/OpenWsmanClient.h is in libwsman-clientpp-dev 2.6.5-0ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
//----------------------------------------------------------------------------
//
//  Copyright (C) Intel Corporation, 2007.
//            (C) Red Hat, Inc, 2015.
//
//  File:       OpenWsmanClient.h
//
//  Contents:   An implementation of the WsmanClient interface using openwsman
//
//----------------------------------------------------------------------------

#ifndef __OPEN_WSMAN_CLIENT_H
#define __OPEN_WSMAN_CLIENT_H

#include "WsmanClient.h"

struct _WsManClient;
typedef struct _WsManClient WsManClient; // FW declaration of struct
struct WsManClientData;

namespace WsmanClientNamespace
{
	class OpenWsmanClient : public WsmanClient
	{
		private:
			WsManClient* cl;
			// Copy constructor is declared private
			OpenWsmanClient(const OpenWsmanClient& cl);
			// operator = is declared private
			OpenWsmanClient& operator =(const OpenWsmanClient& cl);
		public:
			// Construct from params.
			OpenWsmanClient(
				const string &host = string("localhost"),
				const int port = 80,
				const string &path = string("/wsman"),
				const string &scheme = string("http"),
				const string &auth_method = string("digest"),
				const string &username = string(),
				const string &password = string(),
				// search for a client proxy address include proxy port
				const string &proxy = string(),
				// search for a client proxy user name
				const string &proxy_username = string(),
				// search for a client proxy password
				const string &proxy_password = string()
#ifdef _WIN32
				// determines which cert store to search
				,const bool local = false,
				// search for a client cert with this name
				const string &cert = string(),
				// search for a client cert with this oid
				const string &oid = string()
#endif
			       );


			// Destructor.
			virtual ~OpenWsmanClient();

			// Creates a new instance of a resource.
			string Create(
				const string &resourceUri,
				const string &data) const;

			// Identify.
			string Identify() const;

			// Delete a resource.
			void Delete(
				const string &resourceUri,
				const NameValuePairs *s = NULL) const;

			// Enumerate resource.
			void Enumerate(
				const string &resourceUri,
				vector<string> &enumRes,
				const NameValuePairs *s = NULL) const;
			void Enumerate(
				const string &resourceUri,
				WsmanFilter & filter,
				vector<string> &enumRes) const;
			void Enumerate(
				const string &resourceUri,
				vector<string> &enumRes,
				const WsmanOptions &options,
				const WsmanFilter &filter = WsmanFilter()) const;

			// Retrieve a resource.
			string Get(
				const string &resourceUri,
				const WsmanOptions &options) const;
			string Get(
				const string &resourceUri,
				const NameValuePairs *s = NULL) const;

			// Update a resource.
			string Put(
				const string &resourceUri,
				const string &content,
				const NameValuePairs *s = NULL) const;

			// Invokes a method and returns the results of the method call.
			string Invoke(
				const string &resourceUri,
				const string &methodName,
				const WsmanOptions &options) const;
			string Invoke(
				const string &resourceUri,
				const string &methodName,
				const string &content,
				const WsmanOptions &options) const;
			string Invoke(
				const string &resourceUri,
				const string &methodName,
				const string &content,
				const NameValuePairs *s = NULL) const;

			// Submit a subscription
			string Subscribe(
				const string &resourceUri,
				const SubscribeInfo &info,
				string &subsContext) const;

			// Renew a subscription
			string Renew(
				const string &resourceUri,
				const string &subsContext,
				float expire,
				const NameValuePairs *s = NULL) const;

			// Terminate a subscription
			void Unsubscribe(
				const string &resourceUri,
				const string &subsContext,
				const NameValuePairs *s = NULL) const;

			// Set auth method
			void SetAuth(const string &auth_method = string("digest"));
			
			// Set timeout method
			void SetTimeout(unsigned long mtime);
			// Set user name
			void SetUserName(const string &user_name);

			// Set passsword
			void SetPassword(const string &password);

			// Set encoding
			void SetEncoding(const string &encoding);

			// Set/Get CIM namespace
			void SetNamespace(const string &ns);
			string GetNamespace() const;

			void SetProxy(
				const string &proxy = string(),
				const string &proxy_username = string(),
				const string &proxy_password = string());
#ifdef _WIN32
			// Set client certificate params
			void SetClientCert(
				const string &caOid = string(),
				const string &caName = string(),
				const bool localCert = false);
#else
			// Set server certificate params
			void SetServerCert(
				const string &cainfo = string(),
				const string &capath = string());

			// Set client certificates params
			void SetClientCert(
				const string &cert,
				const string &key);
#endif
	};
} // namespace WsmanClient
#endif