~alinuxninja/nginx-edge/trunk

« back to all changes in this revision

Viewing changes to debian/modules/ngx_pagespeed/psol/include/third_party/serf/src/auth/auth.h

  • Committer: Vivian
  • Date: 2015-12-04 18:20:11 UTC
  • Revision ID: git-v1:a36f2bc32e884f7473b3a47040e5411306144d7d
* Do not extract psol.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2009 Justin Erenkrantz and Greg Stein
2
 
 *
3
 
 * Licensed under the Apache License, Version 2.0 (the "License");
4
 
 * you may not use this file except in compliance with the License.
5
 
 * You may obtain a copy of the License at
6
 
 *
7
 
 *     http://www.apache.org/licenses/LICENSE-2.0
8
 
 *
9
 
 * Unless required by applicable law or agreed to in writing, software
10
 
 * distributed under the License is distributed on an "AS IS" BASIS,
11
 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 
 * See the License for the specific language governing permissions and
13
 
 * limitations under the License.
14
 
 */
15
 
 
16
 
#ifndef AUTH_H
17
 
#define AUTH_H
18
 
 
19
 
#include "auth_kerb.h"
20
 
 
21
 
#ifdef __cplusplus
22
 
extern "C" {
23
 
#endif
24
 
 
25
 
void serf__encode_auth_header(const char **header, const char *protocol,
26
 
                              const char *data, apr_size_t data_len,
27
 
                              apr_pool_t *pool);
28
 
 
29
 
/** Basic authentication **/
30
 
apr_status_t serf__init_basic(int code,
31
 
                              serf_context_t *ctx,
32
 
                              apr_pool_t *pool);
33
 
apr_status_t serf__init_basic_connection(int code,
34
 
                                         serf_connection_t *conn,
35
 
                                         apr_pool_t *pool);
36
 
apr_status_t serf__handle_basic_auth(int code,
37
 
                                     serf_request_t *request,
38
 
                                     serf_bucket_t *response,
39
 
                                     const char *auth_hdr,
40
 
                                     const char *auth_attr,
41
 
                                     void *baton,
42
 
                                     apr_pool_t *pool);
43
 
apr_status_t serf__setup_request_basic_auth(int code,
44
 
                                            serf_connection_t *conn,
45
 
                                            const char *method,
46
 
                                            const char *uri,
47
 
                                            serf_bucket_t *hdrs_bkt);
48
 
 
49
 
/** Digest authentication **/
50
 
apr_status_t serf__init_digest(int code,
51
 
                               serf_context_t *ctx,
52
 
                               apr_pool_t *pool);
53
 
apr_status_t serf__init_digest_connection(int code,
54
 
                                          serf_connection_t *conn,
55
 
                                          apr_pool_t *pool);
56
 
apr_status_t serf__handle_digest_auth(int code,
57
 
                                      serf_request_t *request,
58
 
                                      serf_bucket_t *response,
59
 
                                      const char *auth_hdr,
60
 
                                      const char *auth_attr,
61
 
                                      void *baton,
62
 
                                      apr_pool_t *pool);
63
 
apr_status_t serf__setup_request_digest_auth(int code,
64
 
                                             serf_connection_t *conn,
65
 
                                             const char *method,
66
 
                                             const char *uri,
67
 
                                             serf_bucket_t *hdrs_bkt);
68
 
apr_status_t serf__validate_response_digest_auth(int code,
69
 
                                                 serf_connection_t *conn,
70
 
                                                 serf_request_t *request,
71
 
                                                 serf_bucket_t *response,
72
 
                                                 apr_pool_t *pool);
73
 
 
74
 
#ifdef SERF_HAVE_KERB
75
 
/** Kerberos authentication **/
76
 
apr_status_t serf__init_kerb(int code,
77
 
                             serf_context_t *ctx,
78
 
                             apr_pool_t *pool);
79
 
apr_status_t serf__init_kerb_connection(int code,
80
 
                                        serf_connection_t *conn,
81
 
                                        apr_pool_t *pool);
82
 
apr_status_t serf__handle_kerb_auth(int code,
83
 
                                    serf_request_t *request,
84
 
                                    serf_bucket_t *response,
85
 
                                    const char *auth_hdr,
86
 
                                    const char *auth_attr,
87
 
                                    void *baton,
88
 
                                    apr_pool_t *pool);
89
 
apr_status_t serf__setup_request_kerb_auth(int code,
90
 
                                           serf_connection_t *conn,
91
 
                                           const char *method,
92
 
                                           const char *uri,
93
 
                                           serf_bucket_t *hdrs_bkt);
94
 
apr_status_t serf__validate_response_kerb_auth(int code,
95
 
                                               serf_connection_t *conn,
96
 
                                               serf_request_t *request,
97
 
                                               serf_bucket_t *response,
98
 
                                               apr_pool_t *pool);
99
 
#endif /* SERF_HAVE_SPNEGO */
100
 
 
101
 
#ifdef __cplusplus
102
 
}
103
 
#endif
104
 
 
105
 
#endif    /* !AUTH_H */