Move omission of SSH protocol setting in PuTTYtel into windlg.c and

remove nosshres.rc accordingly

[originally from svn r682]
This commit is contained in:
Simon Tatham 2000-10-06 12:43:19 +00:00
Родитель 7b6106d62a
Коммит 43abfd1783
3 изменённых файлов: 16 добавлений и 20 удалений

Просмотреть файл

@ -72,10 +72,8 @@ OBJS3 = sshbn.$(OBJ) sshpubk.$(OBJ) ssh.$(OBJ) pageantc.$(OBJ) tree234.$(OBJ)
##-- objects pageant ##-- objects pageant
PAGE1 = pageant.$(OBJ) sshrsa.$(OBJ) sshpubk.$(OBJ) sshdes.$(OBJ) sshbn.$(OBJ) PAGE1 = pageant.$(OBJ) sshrsa.$(OBJ) sshpubk.$(OBJ) sshdes.$(OBJ) sshbn.$(OBJ)
PAGE2 = sshmd5.$(OBJ) version.$(OBJ) tree234.$(OBJ) PAGE2 = sshmd5.$(OBJ) version.$(OBJ) tree234.$(OBJ)
##-- resources putty ##-- resources putty puttytel
PRESRC = win_res.$(RES) PRESRC = win_res.$(RES)
##-- resources puttytel
TRESRC = nosshres.$(RES)
##-- resources pageant ##-- resources pageant
PAGERC = pageant.$(RES) PAGERC = pageant.$(RES)
##-- resources pscp ##-- resources pscp
@ -104,7 +102,7 @@ all: putty.exe puttytel.exe pscp.exe plink.exe pageant.exe
putty.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(POBJS) $(MOBJS) $(OBJS1) $(OBJS2) $(OBJS3) $(PRESRC) putty.rsp putty.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(POBJS) $(MOBJS) $(OBJS1) $(OBJS2) $(OBJS3) $(PRESRC) putty.rsp
link $(LFLAGS) -out:putty.exe @putty.rsp link $(LFLAGS) -out:putty.exe @putty.rsp
puttytel.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(TOBJS) $(MOBJS) $(TRESRC) puttytel.rsp puttytel.exe: $(GOBJS1) $(GOBJS2) $(LOBJS1) $(TOBJS) $(MOBJS) $(PRESRC) puttytel.rsp
link $(LFLAGS) -out:puttytel.exe @puttytel.rsp link $(LFLAGS) -out:puttytel.exe @puttytel.rsp
pageant.exe: $(PAGE1) $(PAGE2) $(PAGERC) pageant.rsp pageant.exe: $(PAGE1) $(PAGE2) $(PAGERC) pageant.rsp
@ -138,7 +136,7 @@ puttytel.rsp: makefile
echo $(LOBJS1) >> puttytel.rsp echo $(LOBJS1) >> puttytel.rsp
echo $(TOBJS) >> puttytel.rsp echo $(TOBJS) >> puttytel.rsp
echo $(MOBJS) >> puttytel.rsp echo $(MOBJS) >> puttytel.rsp
echo $(TRESRC) >> puttytel.rsp echo $(PRESRC) >> puttytel.rsp
echo $(LIBS1) >> puttytel.rsp echo $(LIBS1) >> puttytel.rsp
echo $(LIBS2) >> puttytel.rsp echo $(LIBS2) >> puttytel.rsp
echo $(SOCK1) >> puttytel.rsp echo $(SOCK1) >> puttytel.rsp
@ -224,12 +222,6 @@ win_res.$(RES): win_res.rc win_res.h putty.ico
win_res.$(RES): win_res.$(RES):
rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 win_res.rc
##-- dependencies
nosshres.$(RES): nosshres.rc win_res.rc win_res.h putty.ico
##--
nosshres.$(RES):
rc $(FWHACK) $(RCFL) -r -DWIN32 -D_WIN32 -DWINVER=0x0400 nosshres.rc
##-- dependencies ##-- dependencies
scp.$(RES): scp.rc scp.ico scp.$(RES): scp.rc scp.ico
##-- ##--

Просмотреть файл

@ -1,3 +0,0 @@
/* Stub rc file for the PuTTYtel ssh-free binary */
#define NO_SSH
#include "win_res.rc"

Просмотреть файл

@ -1091,15 +1091,22 @@ static int CALLBACK ConnectionProc (HWND hwnd, UINT msg,
multiedit(&cp, multiedit(&cp,
"Host &Name", IDC_HOSTSTATIC, IDC_HOST, 75, "Host &Name", IDC_HOSTSTATIC, IDC_HOST, 75,
"&Port", IDC_PORTSTATIC, IDC_PORT, 25, NULL); "&Port", IDC_PORTSTATIC, IDC_PORT, 25, NULL);
radioline(&cp, "Protocol:", IDC_PROTSTATIC, 3, if (backends[2].backend == NULL) {
"&Raw", IDC_PROTRAW, /* this is PuTTYtel, so only two protocols available */
"&Telnet", IDC_PROTTELNET, radioline(&cp, "Protocol:", IDC_PROTSTATIC, 3,
"&Raw", IDC_PROTRAW,
"&Telnet", IDC_PROTTELNET, NULL);
} else {
radioline(&cp, "Protocol:", IDC_PROTSTATIC, 3,
"&Raw", IDC_PROTRAW,
"&Telnet", IDC_PROTTELNET,
#ifdef FWHACK #ifdef FWHACK
"SS&H/hack", "SS&H/hack",
#else #else
"SS&H", "SS&H",
#endif #endif
IDC_PROTSSH, NULL); IDC_PROTSSH, NULL);
}
sesssaver(&cp, "Stor&ed Sessions", sesssaver(&cp, "Stor&ed Sessions",
IDC_SESSSTATIC, IDC_SESSEDIT, IDC_SESSLIST, IDC_SESSSTATIC, IDC_SESSEDIT, IDC_SESSLIST,
"&Load", IDC_SESSLOAD, "&Load", IDC_SESSLOAD,