This file is indexed.

/usr/share/gtk-doc/html/libepc-1.0/libepc-1.0-auth-context.html is in libepc-doc 0.4.4-1ubuntu1.

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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EpcAuthContext</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Easy Publish and Consume Reference Manual">
<link rel="up" href="publishing.html" title="Publishing">
<link rel="prev" href="publishing.html" title="Publishing">
<link rel="next" href="libepc-1.0-contents.html" title="EpcContents">
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="publishing.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="publishing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Easy Publish and Consume Reference Manual</th>
<td><a accesskey="n" href="libepc-1.0-contents.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libepc-1.0-auth-context.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libepc-1.0-auth-context.description" class="shortcut">Description</a>
                   | 
                  <a href="#libepc-1.0-auth-context.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="libepc-1.0-auth-context"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libepc-1.0-auth-context.top_of_page"></a>EpcAuthContext</span></h2>
<p>EpcAuthContext — manage authentication</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libepc-1.0-auth-context.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="libepc-1.0-auth-context.synopsis"></a><h2>Synopsis</h2>
<a name="EpcAuthFlags"></a><pre class="synopsis">
#include &lt;libepc/publish.h&gt;

enum                <a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags-enum" title="enum EpcAuthFlags">EpcAuthFlags</a>;
<span class="returnvalue">gboolean</span>            (<a class="link" href="libepc-1.0-auth-context.html#EpcAuthHandler" title="EpcAuthHandler ()">*EpcAuthHandler</a>)                   (<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *username</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
                    <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext">EpcAuthContext</a>;
<span class="returnvalue">gboolean</span>            <a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-check-password" title="epc_auth_context_check_password ()">epc_auth_context_check_password</a>     (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *password</code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-get-key" title="epc_auth_context_get_key ()">epc_auth_context_get_key</a>            (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-get-password" title="epc_auth_context_get_password ()">epc_auth_context_get_password</a>       (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>);
<a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="returnvalue">EpcPublisher</span></a> *      <a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-get-publisher" title="epc_auth_context_get_publisher ()">epc_auth_context_get_publisher</a>      (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>);

<span class="returnvalue">GFlagsClass</span> *       <a class="link" href="libepc-1.0-auth-context.html#epc-auth-flags-get-class" title="epc_auth_flags_get_class ()">epc_auth_flags_get_class</a>            (<em class="parameter"><code><span class="type">void</span></code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="libepc-1.0-auth-context.html#epc-auth-flags-to-string" title="epc_auth_flags_to_string ()">epc_auth_flags_to_string</a>            (<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a> value</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-auth-context.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GFlags
   +----EpcAuthFlags
</pre>
</div>
<div class="refsect1">
<a name="libepc-1.0-auth-context.description"></a><h2>Description</h2>
<p>
With each request the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> verifies access authorization by calling
the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthHandler" title="EpcAuthHandler ()"><span class="type">EpcAuthHandler</span></a> registered for the key in question, if any. Information about
that process is stored in the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> structure.
</p>
<p>
To register an authentication handler call <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-handler" title="epc_publisher_set_auth_handler ()"><code class="function">epc_publisher_set_auth_handler()</code></a>:
</p>
<p>
</p>
<div class="example">
<a name="register-auth-handler"></a><p class="title"><b>Example 3. Register an authentication handler</b></p>
<div class="example-contents">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="function"><a href="libepc-1.0-publisher.html#epc-publisher-set-auth-handler">epc_publisher_set_auth_handler</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">publisher</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"sensitive-key"</span><span class="symbol">,</span>
<span class="normal">                                my_auth_handler</span><span class="symbol">,</span><span class="normal"> my_object</span><span class="symbol">);</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

</div>
<p><br class="example-break">
</p>
<p>
To verify that the user password provided password matches
the expected one use <a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-check-password" title="epc_auth_context_check_password ()"><code class="function">epc_auth_context_check_password()</code></a>:
</p>
<p>
</p>
<div class="example">
<a name="check-password"></a><p class="title"><b>Example 4. Verify a password</b></p>
<div class="example-contents">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> gboolean</span>
<span class="function">my_auth_handler</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">EpcAuthContext</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">context</span><span class="symbol">,</span>
<span class="normal">                 </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal">    </span><span class="symbol">*</span><span class="normal">username</span><span class="symbol">,</span>
<span class="normal">                 </span><span class="usertype">gpointer</span><span class="normal">        user_data</span><span class="symbol">)</span>
<span class="cbracket">{</span>
<span class="normal">  </span><span class="usertype">MyObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">self </span><span class="symbol">=</span><span class="normal"> user_data</span><span class="symbol">;</span>
<span class="normal">  </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">expected_password</span><span class="symbol">;</span>
<span class="normal">  </span><span class="keyword">const</span><span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">requested_key</span><span class="symbol">;</span>

<span class="normal">  requested_key </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="libepc-1.0-auth-context.html#epc-auth-context-get-key">epc_auth_context_get_key</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">);</span>
<span class="normal">  expected_password </span><span class="symbol">=</span><span class="normal"> </span><span class="function">lookup_password</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">,</span><span class="normal"> requested_key</span><span class="symbol">);</span>

<span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="function"><a href="libepc-1.0-auth-context.html#epc-auth-context-check-password">epc_auth_context_check_password</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> expected_password</span><span class="symbol">);</span>
<span class="cbracket">}</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

</div>
<p><br class="example-break">
</p>
</div>
<div class="refsect1">
<a name="libepc-1.0-auth-context.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="EpcAuthFlags-enum"></a><h3>enum EpcAuthFlags</h3>
<pre class="programlisting">typedef enum {
  EPC_AUTH_DEFAULT =                     0,
  EPC_AUTH_PASSWORD_TEXT_NEEDED =       (1 &lt;&lt; 0)
} EpcAuthFlags;
</pre>
<p>
These flags specify the authentication behaviour of an <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="EPC-AUTH-DEFAULT:CAPS"></a><span class="term"><code class="literal">EPC_AUTH_DEFAULT</code></span></p></td>
<td>The default authentication settings.
</td>
</tr>
<tr>
<td><p><a name="EPC-AUTH-PASSWORD-TEXT-NEEDED:CAPS"></a><span class="term"><code class="literal">EPC_AUTH_PASSWORD_TEXT_NEEDED</code></span></p></td>
<td>Set this flag when your <a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a>
needs the supplied password in plain text - for instance to pass it to a
database server used by your application. This flag replaces the secure Digest
authentication scheme with the insecure Basic authentication scheme.
Therefore this setting is valid only when the publisher's transport
protocol is <a class="link" href="EpcProtocol.html#EPC-PROTOCOL-HTTPS:CAPS"><span class="type">EPC_PROTOCOL_HTTPS</span></a> (secure http).
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EpcAuthHandler"></a><h3>EpcAuthHandler ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*EpcAuthHandler)                   (<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *username</code></em>,
                                                         <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
<p>
Functions implementing this callback shall return <code class="literal">TRUE</code> when the
credentials provided by the authentication request grant access
to the resource described by <em class="parameter"><code>context</code></em>.
</p>
<p>
The <em class="parameter"><code>username</code></em> is <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> when no creditials were passed, and anonymous access
is tried.
</p>
<p>
See also <a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-flags" title="epc_publisher_set_auth_flags ()"><span class="type">epc_publisher_set_auth_flags</span></a>. When EPC_AUTH_DEFAULT is used, 
you should call <a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-check-password" title="epc_auth_context_check_password ()"><span class="type">epc_auth_context_check_password</span></a>
to verify that the password passed in the request matches the known password
for that user. In this case there is no way to retrieve the password from 
the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> because the network protocol transfers just a hash code, 
not the actual password.
</p>
<p>
However, when EPC_AUTH_PASSWORD_TEXT_NEEDED is used, you should call 
<a class="link" href="libepc-1.0-auth-context.html#epc-auth-context-get-password" title="epc_auth_context_get_password ()"><code class="function">epc_auth_context_get_password()</code></a> and then do your own authentication check. 
For instance, you might need to delegate the authentication to some other 
code or server, such as a database server.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>username</code></em> :</span></p></td>
<td>the username provided for authentication, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was installed</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> when access is granted, and <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="EpcAuthContext"></a><h3>EpcAuthContext</h3>
<pre class="programlisting">typedef struct _EpcAuthContext EpcAuthContext;</pre>
<p>
This data structure describes a pending authentication request
which shall be verified by an <a class="link" href="libepc-1.0-auth-context.html#EpcAuthHandler" title="EpcAuthHandler ()"><span class="type">EpcAuthHandler</span></a> installed by
<a class="link" href="libepc-1.0-publisher.html#epc-publisher-set-auth-handler" title="epc_publisher_set_auth_handler ()"><code class="function">epc_publisher_set_auth_handler()</code></a>.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>
 There is no way to retrieve the password from the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>, as
 the network protocol transfers just a hash code, not the actual password.
</p>
</div>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="epc-auth-context-check-password"></a><h3>epc_auth_context_check_password ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            epc_auth_context_check_password     (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *password</code></em>);</pre>
<p>
Verifies that the password supplied with the network request matches
the <em class="parameter"><code>password</code></em> the application expects. There is no way to retrieve the
password from the <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>, as the network protocol transfers
just a hash code, not the actual password.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td>
<td>the expected password</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> when the sent password matches, or <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-auth-context-get-key"></a><h3>epc_auth_context_get_key ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       epc_auth_context_get_key            (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>);</pre>
<p>
Queries the resource key associated with the authentication <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The resource key.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-auth-context-get-password"></a><h3>epc_auth_context_get_password ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       epc_auth_context_get_password       (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>);</pre>
<p>
Queries the password sent for the authentication <em class="parameter"><code>context</code></em> when Basic
authentication was allowed for the <em class="parameter"><code>context</code></em>, and <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> otherwise.
</p>
<p>
See also: <a class="link" href="libepc-1.0-auth-context.html#EPC-AUTH-PASSWORD-TEXT-NEEDED:CAPS"><span class="type">EPC_AUTH_PASSWORD_TEXT_NEEDED</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The password sent, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-auth-context-get-publisher"></a><h3>epc_auth_context_get_publisher ()</h3>
<pre class="programlisting"><a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="returnvalue">EpcPublisher</span></a> *      epc_auth_context_get_publisher      (<em class="parameter"><code>const <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a> *context</code></em>);</pre>
<p>
Queries the <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a> owning the authentication <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="libepc-1.0-auth-context.html#EpcAuthContext" title="EpcAuthContext"><span class="type">EpcAuthContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The owning <a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-auth-flags-get-class"></a><h3>epc_auth_flags_get_class ()</h3>
<pre class="programlisting"><span class="returnvalue">GFlagsClass</span> *       epc_auth_flags_get_class            (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Retrieves the GFlagsClass describing the EpcAuthFlags flags.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The GFlagsClass describing EpcAuthFlags.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="epc-auth-flags-to-string"></a><h3>epc_auth_flags_to_string ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       epc_auth_flags_to_string            (<em class="parameter"><code><a class="link" href="libepc-1.0-auth-context.html#EpcAuthFlags"><span class="type">EpcAuthFlags</span></a> value</code></em>);</pre>
<p>
Retrieves the name of a EpcAuthFlags <em class="parameter"><code>value</code></em>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> when <em class="parameter"><code>value</code></em> is invalid.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>a EpcAuthFlags value</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The string representation of <em class="parameter"><code>value</code></em>, or <a href="/opt/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libepc-1.0-auth-context.see-also"></a><h2>See Also</h2>
<a class="link" href="libepc-1.0-publisher.html#EpcPublisher"><span class="type">EpcPublisher</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18.1</div>
</body>
</html>