4bff34e37def8a90f9194d81bc345c52ba20086athurlow/*
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow *
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow *
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * or http://www.opensolaris.org/os/licensing.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow *
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow *
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * CDDL HEADER END
4bff34e37def8a90f9194d81bc345c52ba20086athurlow */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow/*
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Use is subject to license terms.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#ifndef _SMB_PASS_H
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#define _SMB_PASS_H
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow/*
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Password keychains interface
4bff34e37def8a90f9194d81bc345c52ba20086athurlow */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#include <sys/avl.h>
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#include <netsmb/smb_dev.h>
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow/*
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Here just so our mdb module can use it.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Otherwise could be private to smb_pass.c
4bff34e37def8a90f9194d81bc345c52ba20086athurlow */
4bff34e37def8a90f9194d81bc345c52ba20086athurlowtypedef struct smb_passid {
4bff34e37def8a90f9194d81bc345c52ba20086athurlow avl_node_t cpnode; /* Next Node information */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow uid_t uid; /* User id */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow zoneid_t zoneid; /* Future Use */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow char *srvdom; /* Windows Domain (or server) */
4bff34e37def8a90f9194d81bc345c52ba20086athurlow char *username; /* Windows User name */
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross uchar_t lmhash[SMBIOC_HASH_SZ];
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross uchar_t nthash[SMBIOC_HASH_SZ];
4bff34e37def8a90f9194d81bc345c52ba20086athurlow} smb_passid_t;
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow/* Called from smb_dev.c */
4bff34e37def8a90f9194d81bc345c52ba20086athurlowvoid smb_pkey_init(void);
4bff34e37def8a90f9194d81bc345c52ba20086athurlowvoid smb_pkey_fini(void);
4bff34e37def8a90f9194d81bc345c52ba20086athurlowint smb_pkey_idle(void);
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossint smb_pkey_ioctl(int, intptr_t, int, cred_t *);
4bff34e37def8a90f9194d81bc345c52ba20086athurlow
4bff34e37def8a90f9194d81bc345c52ba20086athurlow#endif /* _SMB_PASS_H */