d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Common Development and Distribution License (the "License").
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You may not use this file except in compliance with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * When distributing Covered Code, include this CDDL HEADER in each
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER END
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Use is subject to license terms.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * auth_none.c implements routines used to pass "null" credentials
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * and "null" verifiers in kernel RPC.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Null authenticator operations vector
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedystatic bool_t authnone_marshal(AUTH *, XDR *, struct cred *);
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedystatic bool_t authnone_validate(AUTH *, struct opaque_auth *);
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedystatic bool_t authnone_refresh(AUTH *, struct rpc_msg *, cred_t *);
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Create a kernel null style authenticator.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Returns an auth handle.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Allocate and set up auth handle
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy return (kmem_cache_alloc(authnone_cache, KM_SLEEP));
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The constructor of the authnone_cache.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyauthnone_init(void *buf, void *cdrarg, int kmflags)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Flavor of RPC message's credential and verifier should be set to
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * AUTH_NONE. Opaque data associated with AUTH_NONE is undefined.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The length of the opaque data should be zero.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * oa_flavor = AUTH_NONE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * oa_base = NULL
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * oa_length = 0
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy auth->ah_cred = auth->ah_verf = _null_auth;
static bool_t
if (ptr) {
return (TRUE);
return (TRUE);
return (FALSE);
static bool_t
return (TRUE);
static bool_t
return (FALSE);