1N/A/*
1N/A * CDDL HEADER START
1N/A *
1N/A * The contents of this file are subject to the terms of the
1N/A * Common Development and Distribution License (the "License").
1N/A * You may not use this file except in compliance with the License.
1N/A *
1N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A * or http://www.opensolaris.org/os/licensing.
1N/A * See the License for the specific language governing permissions
1N/A * and limitations under the License.
1N/A *
1N/A * When distributing Covered Code, include this CDDL HEADER in each
1N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A * If applicable, add the following below this CDDL HEADER, with the
1N/A * fields enclosed by brackets "[]" replaced with your own identifying
1N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1N/A *
1N/A * CDDL HEADER END
1N/A */
1N/A/*
1N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
1N/A */
1N/A
1N/A#ifndef _NTLM_H
1N/A#define _NTLM_H
1N/A
1N/A/*
1N/A * NTLM support functions
1N/A * See smbfs_ntlm.c
1N/A */
1N/A
1N/A/*
1N/A * Size of all LM/NTLM hashes, challenge
1N/A * NTLM_HASH_SZ: 16 bytes (see smb_lib.h)
1N/A * NTLM_CHAL_SZ: 8 bytes (see smb_lib.h)
1N/A */
1N/A#define NTLM_V1_RESP_SZ 24 /* response size */
1N/A
1N/A#define NAMETYPE_EOL 0x0000 /* end of list of names */
1N/A#define NAMETYPE_MACHINE_NB 0x0001 /* NetBIOS machine name */
1N/A#define NAMETYPE_DOMAIN_NB 0x0002 /* NetBIOS domain name */
1N/A#define NAMETYPE_MACHINE_DNS 0x0003 /* DNS machine name */
1N/A#define NAMETYPE_DOMAIN_DNS 0x0004 /* DNS (AD) domain name */
1N/A
1N/Aint smbfs_ntlm_compute_lm_hash(uchar_t *, const char *);
1N/Aint smbfs_ntlm_compute_nt_hash(uchar_t *, const char *);
1N/Aint smbfs_ntlm_build_target_info(struct smb_ctx *, struct mbuf *,
1N/A struct mbdata *);
1N/Aint smbfs_ntlm_put_v1_responses(struct smb_ctx *, struct mbdata *,
1N/A struct mbdata *);
1N/Aint smbfs_ntlm_put_v1ess_responses(struct smb_ctx *, struct mbdata *,
1N/A struct mbdata *);
1N/Aint smbfs_ntlm_put_v2_responses(struct smb_ctx *, struct mbdata *,
1N/A struct mbdata *, struct mbdata *);
1N/A#endif /* _NTLM_H */
1N/A