Skip to content

Commit

Permalink
* Add another DLL to the Windows distribution
Browse files Browse the repository at this point in the history
* Try to be satisfied with a short Type 2 response from the server
  • Loading branch information
dave committed Mar 11, 2012
1 parent 3665964 commit c65546b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ buildwin:
cp cntlm.exe win/
strip win/cntlm.exe
ln -s win $(NAME)-$(VER)
zip -9 $(NAME)-$(VER).zip $(NAME)-$(VER)/cntlm.exe $(NAME)-$(VER)/cyggcc_s-1.dll $(NAME)-$(VER)/cygwin1.dll $(NAME)-$(VER)/cygrunsrv.exe $(NAME)-$(VER)/cntlm.ini $(NAME)-$(VER)/README.txt $(NAME)-$(VER)/license.txt
zip -9 $(NAME)-$(VER)-win32.zip $(NAME)-$(VER)/cntlm.exe $(NAME)-$(VER)/cyggcc_s-1.dll $(NAME)-$(VER)/cygwin1.dll $(NAME)-$(VER)/cygrunsrv.exe $(NAME)-$(VER)/cntlm.ini $(NAME)-$(VER)/README.txt $(NAME)-$(VER)/license.txt
rm -f $(NAME)-$(VER)
@echo
@echo Now open folder "win", right-click "setup.iss", then "Compile".
Expand Down
2 changes: 1 addition & 1 deletion ntlm.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ int ntlm_response(char **dst, char *challenge, int challen, struct auth_s *creds
printf("\t Flags: 0x%X\n", U32LE(VAL(challenge, uint32_t, 20)));
}

if (challen > 48) {
if (challen >= NTLM_CHALLENGE_MIN) {
tbofs = tpos = U16LE(VAL(challenge, uint16_t, 44));
while (tpos+4 <= challen && (ttype = U16LE(VAL(challenge, uint16_t, tpos)))) {
tlen = U16LE(VAL(challenge, uint16_t, tpos+2));
Expand Down
2 changes: 1 addition & 1 deletion ntlm.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "auth.h"

#define NTLM_BUFSIZE 1024
#define NTLM_CHALLENGE_MIN 24
#define NTLM_CHALLENGE_MIN 40

extern char *ntlm_hash_lm_password(char *password);
extern char *ntlm_hash_nt_password(char *password);
Expand Down

0 comments on commit c65546b

Please sign in to comment.