smb_token.c revision b89a8333f5e1f75ec0c269b22524bd2eccb972ba
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
*/
#ifdef _KERNEL
#else /* _KERNEL */
#include <stdlib.h>
#include <strings.h>
#include <syslog.h>
#endif /* _KERNEL */
#include <smbsrv/smb_token.h>
/*
* smb_token_query_privilege
*
* Find out if the specified privilege is enable in the given
* access token.
*/
int
{
int i;
return (0);
return (1);
else
return (0);
}
}
return (0);
}
#ifndef _KERNEL
/*
* smb_token_mkselfrel
*
* encode: structure -> flat buffer (buffer size)
* Pre-condition: obj is non-null.
*/
uint8_t *
{
if (!obj) {
return (NULL);
}
if (!buf) {
return (NULL);
}
*len = 0;
}
xdr_destroy(&xdrs);
return (buf);
}
/*
* netr_client_mkabsolute
*
* decode: flat buffer -> structure
*/
{
if (!obj) {
xdr_destroy(&xdrs);
return (NULL);
}
}
xdr_destroy(&xdrs);
return (obj);
}
void
{
}
#else /* _KERNEL */
/*
* smb_token_mkabsolute
*
* decode: flat buffer -> structure
*/
{
}
xdr_destroy(&xdrs);
return (obj);
}
/*
* netr_client_mkselfrel
*
* encode: structure -> flat buffer (buffer size)
* Pre-condition: obj is non-null.
*/
uint8_t *
{
*len = 0;
}
xdr_destroy(&xdrs);
return (buf);
}
void
{
if (!token)
return;
/*
* deallocate any pointer field of an access token object
* using xdr_free since they are created by the XDR decode
* operation.
*/
}
#endif /* _KERNEL */