smb_token.c revision 12b65585e720714b31036daaa2b30eb76014048e
/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
/*
*/
#if defined(_KERNEL) || defined(_FAKE_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);
}
/*
* Basic sanity check on a token.
*/
{
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
return (B_TRUE);
}
#if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
/*
* 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);
}
/*
* Decode: flat buffer -> structure
*/
{
xdr_destroy(&xdrs);
return (NULL);
}
}
xdr_destroy(&xdrs);
return (obj);
}
void
{
}
#endif /* _KERNEL */