Tagging the 0.73.2.5 release of the kitty project.

This commit is contained in:
cyd01
2020-03-12 19:41:32 +01:00
parent 227323799e
commit 7b74b9ec6a
11 changed files with 101 additions and 17 deletions
+4
View File
@@ -12,6 +12,10 @@
#include "sshcr.h"
#include "ssh2connection.h"
#ifdef MOD_RECONNECT
int GetAutoreconnectFlag( void ) ;
#endif
static void ssh2_connection_free(PacketProtocolLayer *);
static void ssh2_connection_process_queue(PacketProtocolLayer *);
static bool ssh2_connection_get_specials(
+12 -1
View File
@@ -865,7 +865,9 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
continue; /* process this new message */
}
ppl_logevent("Offer of public key accepted");
#ifdef MOD_RECONNECT
is_backend_first_connected = 0 ;
#endif
/*
* Actually attempt a serious authentication using
* the key.
@@ -890,11 +892,13 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
s->publickey_comment),
false);
#ifdef MOD_PERSO
//if( GetAutoreconnectFlag() && (strlen(ManagePassPhrase(NULL))>0) ) {
if( strlen(ManagePassPhrase(NULL))>0 ) {
char *p = ManagePassPhrase(NULL) ;
bufchain bc;
bufchain_init(&bc);
bufchain_add(&bc, p, strlen(p));
bufchain_add(&bc, "\n", 1);
s->userpass_ret = seat_get_userpass_input( s->ppl.seat, s->cur_prompt, &bc );
logevent(NULL,"Test passphrase");
ManagePassPhrase("");
@@ -938,8 +942,12 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
* Try decrypting the key.
*/
key = ssh2_load_userkey(s->keyfile, passphrase, &error);
if (passphrase) {
/* burn the evidence */
#ifdef MOD_PERSO
if(strlen(passphrase)>0) { ManagePassPhrase(passphrase); }
#endif
smemclr(passphrase, strlen(passphrase));
sfree(passphrase);
}
@@ -956,6 +964,9 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
s->suppress_wait_for_response_packet = true;
break; /* try something else */
}
#ifdef MOD_PERSO
ManagePassPhrase("");
#endif
} else {
/* FIXME: if we ever support variable signature
* flags, this is somewhere they'll need to be
+1 -1
View File
@@ -1,5 +1,5 @@
#define RELEASE 0.73
#define TEXTVER "Release 0.73"
#define SSHVER "-Release-0.73"
#define BINARY_VERSION 0,73,2,4
#define BINARY_VERSION 0,73,2,5
#define SOURCE_COMMIT "unavailable"
+2 -2
View File
@@ -848,7 +848,7 @@ putty.res.o: ../windows/putty.rc ../windows/rcstuff.h ../windows/winhelp.rc2 \
../windows/win_res.h ../windows/putty.ico \
../windows/puttycfg.ico ../windows/version.rc2 ../version.h \
../licence.h \
../../blocnote/notepad.rc
../../blocnote/notepad.rc ../windows/kitty.mft
$(RC) $(RCFL) $(RCFLAGS) ../windows/putty.rc -o putty.res.o -DMOD_INTEGRATED_AGENT -DMOD_INTEGRATED_KEYGEN
puttygen.res.o: ../windows/puttygen.rc ../windows/rcstuff.h \
@@ -2132,7 +2132,7 @@ cross:
make -e TOOLPATH=/usr/bin/i686-w64-mingw32- -f MAKEFILE.MINGW putty.exe plink.exe pscp.exe psftp.exe pageant.exe puttygen.exe
make -e TOOLPATH=/usr/bin/i686-w64-mingw32- -f MAKEFILE.MINGW portable
cp putty.exe putty_nocompress.exe
upx --best --compress-icons=2 --compress-exports=0 putty.exe putty_portable.exe putty_nocompress.exe
upx --best --compress-icons=2 --compress-exports=0 putty.exe putty_portable.exe
mv putty.exe /builds/kitty.exe
mv putty_portable.exe /builds/kitty_portable.exe
mv putty_nocompress.exe /builds/kitty_nocompress.exe
+6
View File
@@ -6,6 +6,12 @@
#include "winhelp.rc2"
#include "win_res.rc2"
#ifdef MOD_PERSO
#ifndef NO_MANIFESTS
1 RT_MANIFEST "kitty.mft"
#endif /* NO_MANIFESTS */
#else
#ifndef NO_MANIFESTS
1 RT_MANIFEST "putty.mft"
#endif /* NO_MANIFESTS */
#endif
+1 -1
View File
@@ -1 +1 @@
4
5
+65 -8
View File
@@ -539,13 +539,17 @@ static void start_backend(void)
conf_get_bool(conf, CONF_tcp_nodelay),
conf_get_bool(conf, CONF_tcp_keepalives));
if (error) {
#ifdef MOD_RECONNECT
char *str = dupprintf("%s Error", appname);
char *msg = dupprintf("Unable to open connection to\n%s\n%s",
conf_dest(conf), error);
MessageBox(NULL, msg, str, MB_ICONERROR | MB_OK);
if( GetAutoreconnectFlag() && conf_get_int(conf,CONF_failure_reconnect) && is_backend_first_connected ) {
lp_eventlog(default_logpolicy, msg) ;
} else {
MessageBox(NULL, msg, str, MB_ICONERROR | MB_OK);
}
sfree(str);
sfree(msg);
#ifdef MOD_RECONNECT
if( GetAutoreconnectFlag() && conf_get_int(conf,CONF_failure_reconnect) && is_backend_first_connected ) {
SetConnBreakIcon() ;
SetSSHConnected(0) ;
@@ -556,6 +560,13 @@ static void start_backend(void)
return ;
}
else
#else
char *str = dupprintf("%s Error", appname);
char *msg = dupprintf("Unable to open connection to\n%s\n%s",
conf_dest(conf), error);
MessageBox(NULL, msg, str, MB_ICONERROR | MB_OK);
sfree(str);
sfree(msg);
#endif
exit(0);
}
@@ -644,6 +655,7 @@ static void close_session(void *ignored_context)
void RestartSession( void ) {
win_seat_connection_fatal( win_seat, "User request session restart..." ) ;
PostMessage(hwnd,WM_KEYDOWN,VK_RETURN ,0) ;
is_backend_first_connected = 0 ;
PostMessage(hwnd,WM_KEYUP,VK_RETURN ,1) ;
}
#endif
@@ -872,6 +884,9 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
debug_flag = 1 ;
} else if( !strcmp(p, "-fullscreen") ) {
conf_set_int( conf, CONF_fullscreen, 1 ) ;
} else if( !strcmp(p, "-funky") ) {
i++;
conf_set_int( conf, CONF_funky_type, atoi(argv[1]) ) ;
} else if( !strcmp(p, "-initdelay") ) {
i++ ;
init_delay = (int)(1000*atof( argv[i] )) ;
@@ -932,7 +947,13 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
} else if( !strcmp(p, "-notrans") ) {
SetTransparencyFlag( 0 ) ;
conf_set_int(conf,CONF_transparencynumber, -1) ;
#ifdef MOD_SAVEDUMP
#ifdef MOD_RECONNECT
} else if( !strcmp(p, "-autorecnt") ) {
SetAutoreconnectFlag(1) ;
conf_set_int(conf,CONF_wakeup_reconnect, 1) ;
conf_set_int(conf,CONF_failure_reconnect, 1) ;
#endif
#ifdef MOD_SAVEDUMP
} else if( !strcmp(p, "-savedump") ) {
SaveDump() ;
return 0;
@@ -6545,9 +6566,37 @@ if( !get_param("PUTTY") && conf_get_int(conf, CONF_disablealtgr) ) {
/* Okay, prepare for most alts then ... */
#ifdef MOD_KEYMAPPING
if( !GetPuttyFlag() ) {
if (left_alt && shift_state != 1 && !(wParam == VK_UP || wParam == VK_DOWN || wParam == VK_RIGHT || wParam == VK_LEFT))
*p++ = '\033';
if (left_alt && shift_state != 1 && !(wParam == VK_UP || wParam == VK_DOWN || wParam == VK_RIGHT || wParam == VK_LEFT)) {
int fkey = 0;
switch (wParam) {
case VK_F1:
case VK_F2:
case VK_F3:
case VK_F4:
case VK_F5:
case VK_F6:
case VK_F7:
case VK_F8:
case VK_F9:
case VK_F10:
case VK_F11:
case VK_F12:
case VK_INSERT:
case VK_DELETE:
case VK_HOME:
case VK_END:
case VK_PRIOR:
case VK_NEXT:
fkey = 1;
break;
default:
break;
}
if (!(term->funky_type == FUNKY_XTERM && !term->vt52_mode) || fkey == 0) {
*p++ = '\033';
}
}
}
else
#endif
if (left_alt)
@@ -6566,7 +6615,6 @@ if( !get_param("PUTTY") && conf_get_int(conf, CONF_disablealtgr) ) {
SendMessage(hwnd, WM_VSCROLL, SB_BOTTOM, 0);
return 0;
}
if (wParam == VK_PRIOR && shift_state == 2) {
SendMessage(hwnd, WM_VSCROLL, SB_LINEUP, 0);
return 0;
@@ -6654,12 +6702,20 @@ if( !get_param("PUTTY") && conf_get_int(conf, CONF_disablealtgr) ) {
return 0;
}
#ifdef MOD_KEYMAPPING
if (wParam == VK_BACK && shift_state <= 1) { /* Backspace or Shift Backspace */
#else
if (wParam == VK_BACK && shift_state == 0) { /* Backspace */
#endif
*p++ = (conf_get_bool(conf, CONF_bksp_is_delete) ? 0x7F : 0x08);
*p++ = 0;
return -2;
}
#ifdef MOD_KEYMAPPING
if (wParam == VK_BACK) { /* Ctrl Backspace or Ctrl+Shift Backspace */
#else
if (wParam == VK_BACK && shift_state == 1) { /* Shift Backspace */
#endif
/* We do the opposite of what is configured */
*p++ = (conf_get_bool(conf, CONF_bksp_is_delete) ? 0x08 : 0x7F);
*p++ = 0;
@@ -6813,10 +6869,11 @@ if( !get_param("PUTTY") && conf_get_int(conf, CONF_disablealtgr) ) {
case VK_PRIOR: sk_key = SKK_PGUP; goto small_keypad_key;
case VK_NEXT: sk_key = SKK_PGDN; goto small_keypad_key;
small_keypad_key:
#ifndef MOD_KEYMAPPING
/* These keys don't generate terminal input with Ctrl */
if (shift_state & 2)
break;
#endif
p += format_small_keypad_key((char *)p, term, sk_key);
return p - output;
@@ -7084,7 +7141,7 @@ static void wintw_set_title(TermWin *tw, const char *title_in) {
if( (title[0]=='_')&&(title[1]=='_') ) { // Mode commande a distance
if( ManageLocalCmd( MainHwnd, title+2 ) ) { free(title); return ; }
}
}
if( !GetTitleBarFlag() ) { set_title_internal( tw, title ) ; free(title) ; return ; }
+1 -1
View File
@@ -1306,7 +1306,7 @@ void CreateDefaultIniFile( void ) {
#endif
#endif
writeINI( KittyIniFile, INIT_SECTION, "#uploaddir", "." ) ;
writeINI( KittyIniFile, INIT_SECTION, "#UserPassSSHNoSave", "no" ) ;
writeINI( KittyIniFile, INIT_SECTION, "#userpasssshnosave", "no" ) ;
writeINI( KittyIniFile, INIT_SECTION, "#WinSCPPath", "" ) ;
writeINI( KittyIniFile, INIT_SECTION, "#WinSCPProtocol", "sftp" ) ;
#ifdef MOD_ZMODEM
+4 -1
View File
@@ -57,7 +57,10 @@ static char PassPhrase[256] = "" ;
// Procedure de management de la passphrase
char * ManagePassPhrase( const char * st ) {
if( st != NULL ) strcpy( PassPhrase, st ) ;
if( !GetUserPassSSHNoSave() && (st != NULL) ) {
strcpy( PassPhrase, st ) ;
}
if( GetUserPassSSHNoSave() ) { return "" ; }
return PassPhrase ;
}
+1
View File
@@ -12,6 +12,7 @@ int decryptstring( char * st, const char * key ) ;
int GenerePrivateKey( const char * filename ) ;
// Procedure de management de la passphrase
int GetUserPassSSHNoSave(void) ;
char * ManagePassPhrase( const char * st ) ;
#endif
+4 -2
View File
@@ -9,18 +9,20 @@ void SetTransparency( HWND hwnd, int value ) {
// Numéro de version de l'OS
void GetOSInfo( char * version ) {
void GetOSInfo( char * version ) { // ==> Deprecated with version >= Windows 8.1
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
sprintf( version, "%ld.%ld %ld %ld %s %dx%d", osvi.dwMajorVersion, osvi.dwMinorVersion, osvi.dwBuildNumber, osvi.dwPlatformId, osvi.szCSDVersion, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN) ) ;
}
}
/*
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx
Operating system Version number
Windows 10 Insider Preview 10.0*
Windows Server Technical Preview 10.0*
Windows Server 2019 10.0*
Windows Server 2016 10.0*
Windows 8.1 6.3*
Windows Server 2012 R2 6.3*
Windows 8 6.2