1
/* Copyright 2009 Justin Erenkrantz and Greg Stein
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
7
* http://www.apache.org/licenses/LICENSE-2.0
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.
19
#include "auth_kerb.h"
25
void serf__encode_auth_header(const char **header, const char *protocol,
26
const char *data, apr_size_t data_len,
29
/** Basic authentication **/
30
apr_status_t serf__init_basic(int code,
33
apr_status_t serf__init_basic_connection(int code,
34
serf_connection_t *conn,
36
apr_status_t serf__handle_basic_auth(int code,
37
serf_request_t *request,
38
serf_bucket_t *response,
40
const char *auth_attr,
43
apr_status_t serf__setup_request_basic_auth(int code,
44
serf_connection_t *conn,
47
serf_bucket_t *hdrs_bkt);
49
/** Digest authentication **/
50
apr_status_t serf__init_digest(int code,
53
apr_status_t serf__init_digest_connection(int code,
54
serf_connection_t *conn,
56
apr_status_t serf__handle_digest_auth(int code,
57
serf_request_t *request,
58
serf_bucket_t *response,
60
const char *auth_attr,
63
apr_status_t serf__setup_request_digest_auth(int code,
64
serf_connection_t *conn,
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,
75
/** Kerberos authentication **/
76
apr_status_t serf__init_kerb(int code,
79
apr_status_t serf__init_kerb_connection(int code,
80
serf_connection_t *conn,
82
apr_status_t serf__handle_kerb_auth(int code,
83
serf_request_t *request,
84
serf_bucket_t *response,
86
const char *auth_attr,
89
apr_status_t serf__setup_request_kerb_auth(int code,
90
serf_connection_t *conn,
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,
99
#endif /* SERF_HAVE_SPNEGO */