Deleted Added
full compact
gss_init_sec_context.c (170734) gss_init_sec_context.c (171112)
1/*-
2 * Copyright (c) 2005 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2005 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libgssapi/gss_init_sec_context.c 170734 2007-06-14 19:58:24Z harti $
26 * $FreeBSD: head/lib/libgssapi/gss_init_sec_context.c 171112 2007-06-30 07:47:45Z dfr $
27 */
28
29#include <gssapi/gssapi.h>
30#include <stdlib.h>
31#include <string.h>
32#include <errno.h>
33
34#include "mech_switch.h"

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

93 m = ctx->gc_mech;
94 allocated_ctx = 0;
95 }
96
97 /*
98 * Find the MN for this mechanism.
99 */
100 mn = _gss_find_mn(name, mech_type);
27 */
28
29#include <gssapi/gssapi.h>
30#include <stdlib.h>
31#include <string.h>
32#include <errno.h>
33
34#include "mech_switch.h"

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

93 m = ctx->gc_mech;
94 allocated_ctx = 0;
95 }
96
97 /*
98 * Find the MN for this mechanism.
99 */
100 mn = _gss_find_mn(name, mech_type);
101 if (mn == NULL) {
102 if (allocated_ctx)
103 free(ctx);
104 return GSS_S_BAD_NAME;
105 }
101
102 /*
103 * If we have a cred, find the cred for this mechanism.
104 */
105 cred_handle = GSS_C_NO_CREDENTIAL;
106 if (cred) {
107 SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
108 if (_gss_oid_equal(mech_type, mc->gmc_mech_oid)) {

--- 30 unchanged lines hidden ---
106
107 /*
108 * If we have a cred, find the cred for this mechanism.
109 */
110 cred_handle = GSS_C_NO_CREDENTIAL;
111 if (cred) {
112 SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
113 if (_gss_oid_equal(mech_type, mc->gmc_mech_oid)) {

--- 30 unchanged lines hidden ---