/*
* 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 2011 Nexenta Systems, Inc. All rights reserved.
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SMB_KEYCHAIN_H
#define _SMB_KEYCHAIN_H
/*
* storage mechanism. This interface is consumed by
* the "smbutil" commands: login, logout, ...
* and by the SMBFS PAM module.
*/
#ifdef __cplusplus
extern "C" {
#endif
#define SMB_KEYCHAIN_SUCCESS 0
/* Add a password to the keychain. */
const char *password);
/* Add an NT-hash (16-bytes) to the keychain. */
/* Delete a password from the keychain. */
/*
* Check for existence of a keychain entry.
* Returns 0 if it exists, else ENOENT.
*/
/*
* Delete all keychain entries owned by the caller.
*/
int smbfs_keychain_del_owner(void);
/*
* Delete all keychain entries (regardless of owner).
* Requires super-user privliege.
*/
int smbfs_keychain_del_everyone(void);
/*
* This is not really part of the keychain library,
* but is typically needed in code that wants to
*
* Get default domain and user names
* Server name is optional.
*/
int
#ifdef __cplusplus
}
#endif
#endif /* _SMB_KEYCHAIN_H */