/*
* 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 2015 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SMBSRV_NETRAUTH_H
#define _SMBSRV_NETRAUTH_H
/*
* NETR remote authentication and logon services.
*/
#include <smbsrv/wintypes.h>
#include <netdb.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* See also netlogon.ndl.
*/
/*
*/
/*
* SAM logon levels: interactive and network.
*/
/*
* SAM logon validation levels.
*/
/*
* Most of these are from: "MSV1_0_LM20_LOGON structure"
* and a few are from the ntddk (ntmsv1_0.h) found many places.
*/
/*
* MSV1_0_USE_CLIENT_CHALLENGE means the LM response field contains the
* "client challenge" in the first 8 bytes instead of the LM response.
*/
/*
* This is a duplicate of the netr_credential
* from netlogon.ndl.
*/
typedef struct netr_cred {
} netr_cred_t;
typedef struct netr_session_key {
short len;
/*
* 120-byte machine account password (null-terminated)
*/
typedef struct netr_info {
} netr_info_t;
/*
* NETLOGON private interface.
*/
int netr_gen_skey64(netr_info_t *);
int netr_gen_skey128(netr_info_t *);
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_NETRAUTH_H */