14bff34e3Sthurlow /* 24bff34e3Sthurlow * CDDL HEADER START 34bff34e3Sthurlow * 44bff34e3Sthurlow * The contents of this file are subject to the terms of the 54bff34e3Sthurlow * Common Development and Distribution License (the "License"). 64bff34e3Sthurlow * You may not use this file except in compliance with the License. 74bff34e3Sthurlow * 84bff34e3Sthurlow * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94bff34e3Sthurlow * or http://www.opensolaris.org/os/licensing. 104bff34e3Sthurlow * See the License for the specific language governing permissions 114bff34e3Sthurlow * and limitations under the License. 124bff34e3Sthurlow * 134bff34e3Sthurlow * When distributing Covered Code, include this CDDL HEADER in each 144bff34e3Sthurlow * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154bff34e3Sthurlow * If applicable, add the following below this CDDL HEADER, with the 164bff34e3Sthurlow * fields enclosed by brackets "[]" replaced with your own identifying 174bff34e3Sthurlow * information: Portions Copyright [yyyy] [name of copyright owner] 184bff34e3Sthurlow * 194bff34e3Sthurlow * CDDL HEADER END 204bff34e3Sthurlow */ 214bff34e3Sthurlow 224bff34e3Sthurlow /* 23613a2f6bSGordon Ross * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 244bff34e3Sthurlow * Use is subject to license terms. 25*40c0e231SGordon Ross * 26*40c0e231SGordon Ross * Copyright 2018 Nexenta Systems, Inc. All rights reserved. 274bff34e3Sthurlow */ 284bff34e3Sthurlow 294bff34e3Sthurlow #ifndef _SMB_PASS_H 304bff34e3Sthurlow #define _SMB_PASS_H 314bff34e3Sthurlow 324bff34e3Sthurlow /* 334bff34e3Sthurlow * Password keychains interface 344bff34e3Sthurlow */ 354bff34e3Sthurlow 364bff34e3Sthurlow #include <sys/avl.h> 374bff34e3Sthurlow #include <netsmb/smb_dev.h> 384bff34e3Sthurlow 394bff34e3Sthurlow /* 404bff34e3Sthurlow * Here just so our mdb module can use it. 414bff34e3Sthurlow * Otherwise could be private to smb_pass.c 424bff34e3Sthurlow */ 434bff34e3Sthurlow typedef struct smb_passid { 444bff34e3Sthurlow avl_node_t cpnode; /* Next Node information */ 454bff34e3Sthurlow uid_t uid; /* User id */ 464bff34e3Sthurlow zoneid_t zoneid; /* Future Use */ 474bff34e3Sthurlow char *srvdom; /* Windows Domain (or server) */ 484bff34e3Sthurlow char *username; /* Windows User name */ 49*40c0e231SGordon Ross uchar_t lmhash[SMBIOC_HASH_SZ]; 50*40c0e231SGordon Ross uchar_t nthash[SMBIOC_HASH_SZ]; 514bff34e3Sthurlow } smb_passid_t; 524bff34e3Sthurlow 534bff34e3Sthurlow /* Called from smb_dev.c */ 544bff34e3Sthurlow void smb_pkey_init(void); 554bff34e3Sthurlow void smb_pkey_fini(void); 564bff34e3Sthurlow int smb_pkey_idle(void); 574bff34e3Sthurlow 584bff34e3Sthurlow #endif /* _SMB_PASS_H */ 59