File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / msoft.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:44:29 2013 UTC (11 years, 5 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, v5_8p7, v5_8p1_cross, v5_8p1, v5_8, v5_7p0, v5_7, v5_6, HEAD
5.7


/*
 * msoft.h
 *
 * Rewritten by Archie Cobbs <archie@freebsd.org>
 * Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
 * See ``COPYRIGHT.whistle''
 */

#ifndef _MSOFT_H_
#define _MSOFT_H_

#include <sys/types.h>

/*
 * FUNCTIONS
 */

  extern void	NTChallengeResponse(const u_char *chal,
		  const char *nthash, u_char *hash);

  extern void	NTPasswordHash(const char *password, u_char *hash);
  extern void	NTPasswordHashHash(const u_char *nthash, u_char *hash);
  extern void	LMPasswordHash(const char *password, u_char *hash);

  extern void	MsoftGetKey(const u_char *h, u_char *h2, int len);
  extern void	MsoftGetStartKey(u_char *chal, u_char *h);

  extern void	GenerateNTResponse(const u_char *authchal,
		  const u_char *peerchal, const char *username,
		  const char *nthash, u_char *hash);
  extern void	GenerateAuthenticatorResponse(const u_char *nthash,
		  const u_char *ntresp, const u_char *peerchal,
		  const u_char *authchal, const char *username,
		  u_char *authresp);

  extern void	MsoftGetMasterKey(u_char *resp, u_char *h);
  extern void	MsoftGetAsymetricStartKey(u_char *h, int server_recv);

#endif


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>