Deleted Added
full compact
auth_basic.c (253895) auth_basic.c (262324)
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 *

--- 34 unchanged lines hidden (view full) ---

43 apr_size_t tmp_len;
44 serf_connection_t *conn = request->conn;
45 serf_context_t *ctx = conn->ctx;
46 serf__authn_info_t *authn_info;
47 basic_authn_info_t *basic_info;
48 apr_status_t status;
49 apr_pool_t *cred_pool;
50 char *username, *password, *realm_name;
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 *

--- 34 unchanged lines hidden (view full) ---

43 apr_size_t tmp_len;
44 serf_connection_t *conn = request->conn;
45 serf_context_t *ctx = conn->ctx;
46 serf__authn_info_t *authn_info;
47 basic_authn_info_t *basic_info;
48 apr_status_t status;
49 apr_pool_t *cred_pool;
50 char *username, *password, *realm_name;
51 const char *eq, *realm;
51 const char *eq, *realm = NULL;
52
53 /* Can't do Basic authentication if there's no callback to get
54 username & password. */
55 if (!ctx->cred_cb) {
56 return SERF_ERROR_AUTHN_FAILED;
57 }
58
59 if (code == 401) {

--- 118 unchanged lines hidden ---
52
53 /* Can't do Basic authentication if there's no callback to get
54 username & password. */
55 if (!ctx->cred_cb) {
56 return SERF_ERROR_AUTHN_FAILED;
57 }
58
59 if (code == 401) {

--- 118 unchanged lines hidden ---