613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * CDDL HEADER START
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * The contents of this file are subject to the terms of the
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * Common Development and Distribution License (the "License").
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * You may not use this file except in compliance with the License.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * See the License for the specific language governing permissions
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * and limitations under the License.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * When distributing Covered Code, include this CDDL HEADER in each
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * If applicable, add the following below this CDDL HEADER, with the
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * fields enclosed by brackets "[]" replaced with your own identifying
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * information: Portions Copyright [yyyy] [name of copyright owner]
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * CDDL HEADER END
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * Use is subject to license terms.
85e6b6747d07050e01ec91acef2453655821f9abGordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * NTLM support functions
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * Size of all LM/NTLM hashes, challenge
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * NTLM_HASH_SZ: 16 bytes (see smb_lib.h)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * NTLM_CHAL_SZ: 8 bytes (see smb_lib.h)
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#define NAMETYPE_EOL 0x0000 /* end of list of names */
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#define NAMETYPE_MACHINE_NB 0x0001 /* NetBIOS machine name */
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#define NAMETYPE_DOMAIN_NB 0x0002 /* NetBIOS domain name */
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#define NAMETYPE_MACHINE_DNS 0x0003 /* DNS machine name */
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#define NAMETYPE_DOMAIN_DNS 0x0004 /* DNS (AD) domain name */
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossntlm_compute_lm_hash(uchar_t *hash, const char *pw);
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossntlm_compute_nt_hash(uchar_t *hash, const char *pw);
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossntlm_build_target_info(struct smb_ctx *, struct mbuf *, struct mbdata *);
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Rossntlm_put_v2_responses(struct smb_ctx *ctx, struct mbdata *ti_mbp,
85e6b6747d07050e01ec91acef2453655821f9abGordon Rossntlm_build_mac_key(struct smb_ctx *ctx, struct mbdata *ntresp_mbp);
85e6b6747d07050e01ec91acef2453655821f9abGordon Rossntlm2_kxkey(struct smb_ctx *ctx, struct mbdata *lm_mbp, uchar_t *kxkey);
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross#endif /* _NTLM_H */