NB! This project is outdated and unmaintained, please refer to the OpenSC WindowsInstaller instead!
| r10 | r11 | |
|---|---|---|
| 80 | 80 | cd .. |
| 81 | 81 | |
| 82 | cd putty-$(PUTTY) |
|
| 82 | cd putty-$(PUTTY)\Windows | |
| 83 | 83 | nmake /f Makefile.vc |
| 84 | 84 | COPY putty.exe $(DESTW) |
| r10 | r11 | |
|---|---|---|
| 1 | 1 | diff -udrNP putty-0.58.orig/Recipe putty-0.58/Recipe |
| 2 | 2 | --- putty-0.58.orig/Recipe 2005-04-05 21:37:51.000000000 +0200 |
| 3 | +++ putty-0.58/Recipe 2005-04-08 1 |
|
| 3 | +++ putty-0.58/Recipe 2005-04-08 16:05:35.116859024 +0200 | |
| 4 | 4 | @@ -205,7 +205,7 @@ |
| 5 | 5 | # SSH back end (putty, plink, pscp, psftp). |
| … | … | |
| 16 | 16 | + misc sshaes sshsha winpgntc sshdss sshsh512 winutils winmisc |
| 17 | 17 | - + pageant.res LIBS |
| 18 | + + pageant.res libpkcs11 sshscard |
|
| 18 | + + pageant.res libpkcs11 sshscard windlg LIBS | |
| 19 | 19 | |
| 20 | 20 | puttygen : [G] winpgen sshrsag sshdssg sshprime sshdes sshbn sshmd5 version |
| … | … | |
| 22 | 22 | diff -udrNP putty-0.58.orig/charset/sbcsdat.c putty-0.58/charset/sbcsdat.c |
| 23 | 23 | --- putty-0.58.orig/charset/sbcsdat.c 2005-04-05 21:40:17.000000000 +0200 |
| 24 | +++ putty-0.58/charset/sbcsdat.c 2005-04-08 1 |
|
| 24 | +++ putty-0.58/charset/sbcsdat.c 2005-04-08 16:05:37.629477048 +0200 | |
| 25 | 25 | @@ -2752,10 +2752,10 @@ |
| 26 | 26 | 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, |
| … | … | |
| 57 | 57 | diff -udrNP putty-0.58.orig/config.c putty-0.58/config.c |
| 58 | 58 | --- putty-0.58.orig/config.c 2005-04-05 21:37:51.000000000 +0200 |
| 59 | +++ putty-0.58/config.c 2005-04-08 14:56:07. |
|
| 59 | +++ putty-0.58/config.c 2005-04-08 14:56:07.000000000 +0200 | |
| 60 | 60 | @@ -1617,6 +1617,20 @@ |
| 61 | 61 | |
| … | … | |
| 114 | 114 | diff -udrNP putty-0.58.orig/libpkcs11.c putty-0.58/libpkcs11.c |
| 115 | 115 | --- putty-0.58.orig/libpkcs11.c 1970-01-01 01:00:00.000000000 +0100 |
| 116 | +++ putty-0.58/libpkcs11.c 2005-04-08 14:52:42.0 |
|
| 116 | +++ putty-0.58/libpkcs11.c 2005-04-08 14:52:42.000000000 +0200 | |
| 117 | 117 | @@ -0,0 +1,268 @@ |
| 118 | 118 | +/* |
| … | … | |
| 386 | 386 | diff -udrNP putty-0.58.orig/local_cmd.c putty-0.58/local_cmd.c |
| 387 | 387 | --- putty-0.58.orig/local_cmd.c 1970-01-01 01:00:00.000000000 +0100 |
| 388 | +++ putty-0.58/local_cmd.c 2005-04-08 1 |
|
| 389 | @@ -0,0 +1,6 |
|
| 388 | +++ putty-0.58/local_cmd.c 2005-04-08 16:02:59.727481800 +0200 | |
| 389 | @@ -0,0 +1,67 @@ | |
| 390 | 390 | +#include <windows.h> |
| 391 | 391 | + |
| 392 | ||
| 393 | ||
| 394 | 392 | + |
| 395 | 393 | +unsigned long __stdcall WaitToClose(void * params); |
| … | … | |
| 446 | 444 | + struct CloseParam * toclose= (struct CloseParam *) params; |
| 447 | 445 | + WaitForSingleObject(toclose->pi->hProcess, INFINITE); |
| 448 | + |
|
| 446 | + ssh_do_close(toclose->ssh,FALSE); | |
| 449 | 447 | + CloseHandle(toclose->pi->hProcess); |
| 450 | 448 | + CloseHandle(toclose->pi->hThread); |
| … | … | |
| 459 | 457 | diff -udrNP putty-0.58.orig/mac/Makefile.mpw putty-0.58/mac/Makefile.mpw |
| 460 | 458 | --- putty-0.58.orig/mac/Makefile.mpw 2005-04-05 21:40:17.000000000 +0200 |
| 461 | +++ putty-0.58/mac/Makefile.mpw 2005-04-08 1 |
|
| 459 | +++ putty-0.58/mac/Makefile.mpw 2005-04-08 16:05:37.760457136 +0200 | |
| 462 | 460 | @@ -158,17 +158,18 @@ |
| 463 | 461 | PuTTY Ä PuTTY.68k PuTTY.ppc PuTTY.carbon |
| … | … | |
| 5003 | 5001 | diff -udrNP putty-0.58.orig/mac/Makefile.mpw.rej putty-0.58/mac/Makefile.mpw.rej |
| 5004 | 5002 | --- putty-0.58.orig/mac/Makefile.mpw.rej 1970-01-01 01:00:00.000000000 +0100 |
| 5005 | +++ putty-0.58/mac/Makefile.mpw.rej 2005-04-08 14:52:42. |
|
| 5003 | +++ putty-0.58/mac/Makefile.mpw.rej 2005-04-08 14:52:42.000000000 +0200 | |
| 5006 | 5004 | @@ -0,0 +1,528 @@ |
| 5007 | 5005 | +*************** |
| … | … | |
| 5535 | 5533 | diff -udrNP putty-0.58.orig/macosx/Makefile putty-0.58/macosx/Makefile |
| 5536 | 5534 | --- putty-0.58.orig/macosx/Makefile 2005-04-05 21:40:17.000000000 +0200 |
| 5537 | +++ putty-0.58/macosx/Makefile 2005-04-08 1 |
|
| 5535 | +++ putty-0.58/macosx/Makefile 2005-04-08 16:05:37.802450752 +0200 | |
| 5538 | 5536 | @@ -104,78 +104,83 @@ |
| 5539 | 5537 | PuTTY.app/Contents/Info.plist $(PuTTY_extra) |
| … | … | |
| 5735 | 5733 | diff -udrNP putty-0.58.orig/pageant.rsp putty-0.58/pageant.rsp |
| 5736 | 5734 | --- putty-0.58.orig/pageant.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 5737 | +++ putty-0.58/pageant.rsp 2005-04-08 14:52:42. |
|
| 5735 | +++ putty-0.58/pageant.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 5738 | 5736 | @@ -0,0 +1,8 @@ |
| 5739 | 5737 | +c0w32 + |
| … | … | |
| 5747 | 5745 | diff -udrNP putty-0.58.orig/pkcs11.h putty-0.58/pkcs11.h |
| 5748 | 5746 | --- putty-0.58.orig/pkcs11.h 1970-01-01 01:00:00.000000000 +0100 |
| 5749 | +++ putty-0.58/pkcs11.h 2005-04-08 14:52:42. |
|
| 5747 | +++ putty-0.58/pkcs11.h 2005-04-08 14:52:42.000000000 +0200 | |
| 5750 | 5748 | @@ -0,0 +1,48 @@ |
| 5751 | 5749 | +/* |
| … | … | |
| 5799 | 5797 | diff -udrNP putty-0.58.orig/plink.rsp putty-0.58/plink.rsp |
| 5800 | 5798 | --- putty-0.58.orig/plink.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 5801 | +++ putty-0.58/plink.rsp 2005-04-08 14:52:42. |
|
| 5799 | +++ putty-0.58/plink.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 5802 | 5800 | @@ -0,0 +1,15 @@ |
| 5803 | 5801 | +c0x32 + |
| … | … | |
| 5818 | 5816 | diff -udrNP putty-0.58.orig/pscp.rsp putty-0.58/pscp.rsp |
| 5819 | 5817 | --- putty-0.58.orig/pscp.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 5820 | +++ putty-0.58/pscp.rsp 2005-04-08 14:52:42. |
|
| 5818 | +++ putty-0.58/pscp.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 5821 | 5819 | @@ -0,0 +1,15 @@ |
| 5822 | 5820 | +c0x32 + |
| … | … | |
| 5837 | 5835 | diff -udrNP putty-0.58.orig/psftp.rsp putty-0.58/psftp.rsp |
| 5838 | 5836 | --- putty-0.58.orig/psftp.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 5839 | +++ putty-0.58/psftp.rsp 2005-04-08 14:52:42. |
|
| 5837 | +++ putty-0.58/psftp.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 5840 | 5838 | @@ -0,0 +1,15 @@ |
| 5841 | 5839 | +c0x32 + |
| … | … | |
| 5856 | 5854 | diff -udrNP putty-0.58.orig/putty.h putty-0.58/putty.h |
| 5857 | 5855 | --- putty-0.58.orig/putty.h 2005-04-05 21:37:51.000000000 +0200 |
| 5858 | +++ putty-0.58/putty.h 2005-04-08 14:52:42. |
|
| 5856 | +++ putty-0.58/putty.h 2005-04-08 14:52:42.000000000 +0200 | |
| 5859 | 5857 | @@ -431,6 +431,9 @@ |
| 5860 | 5858 | int ssh2_des_cbc; /* "des-cbc" unrecommended SSH-2 cipher */ |
| … | … | |
| 6996 | 6994 | diff -udrNP putty-0.58.orig/putty.rsp putty-0.58/putty.rsp |
| 6997 | 6995 | --- putty-0.58.orig/putty.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 6998 | +++ putty-0.58/putty.rsp 2005-04-08 14:52:42. |
|
| 6996 | +++ putty-0.58/putty.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 6999 | 6997 | @@ -0,0 +1,18 @@ |
| 7000 | 6998 | +c0w32 + |
| … | … | |
| 7018 | 7016 | diff -udrNP putty-0.58.orig/puttygen.rsp putty-0.58/puttygen.rsp |
| 7019 | 7017 | --- putty-0.58.orig/puttygen.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 7020 | +++ putty-0.58/puttygen.rsp 2005-04-08 14:52:42. |
|
| 7018 | +++ putty-0.58/puttygen.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 7021 | 7019 | @@ -0,0 +1,10 @@ |
| 7022 | 7020 | +c0w32 + |
| … | … | |
| 7032 | 7030 | diff -udrNP putty-0.58.orig/puttytel.rsp putty-0.58/puttytel.rsp |
| 7033 | 7031 | --- putty-0.58.orig/puttytel.rsp 1970-01-01 01:00:00.000000000 +0100 |
| 7034 | +++ putty-0.58/puttytel.rsp 2005-04-08 14:52:42. |
|
| 7032 | +++ putty-0.58/puttytel.rsp 2005-04-08 14:52:42.000000000 +0200 | |
| 7035 | 7033 | @@ -0,0 +1,12 @@ |
| 7036 | 7034 | +c0w32 + |
| … | … | |
| 7048 | 7046 | diff -udrNP putty-0.58.orig/rsaref/pkcs11.h putty-0.58/rsaref/pkcs11.h |
| 7049 | 7047 | --- putty-0.58.orig/rsaref/pkcs11.h 1970-01-01 01:00:00.000000000 +0100 |
| 7050 | +++ putty-0.58/rsaref/pkcs11.h 2005-04-08 14:52:42. |
|
| 7048 | +++ putty-0.58/rsaref/pkcs11.h 2005-04-08 14:52:42.000000000 +0200 | |
| 7051 | 7049 | @@ -0,0 +1,286 @@ |
| 7052 | 7050 | +/* pkcs11.h include file for PKCS #11. 2001 June 25 */ |
| … | … | |
| 7338 | 7336 | diff -udrNP putty-0.58.orig/rsaref/pkcs11f.h putty-0.58/rsaref/pkcs11f.h |
| 7339 | 7337 | --- putty-0.58.orig/rsaref/pkcs11f.h 1970-01-01 01:00:00.000000000 +0100 |
| 7340 | +++ putty-0.58/rsaref/pkcs11f.h 2005-04-08 14:52:42. |
|
| 7338 | +++ putty-0.58/rsaref/pkcs11f.h 2005-04-08 14:52:42.000000000 +0200 | |
| 7341 | 7339 | @@ -0,0 +1,898 @@ |
| 7342 | 7340 | +/* pkcs11f.h include file for PKCS #11. 2001 June 25 */ |
| … | … | |
| 8240 | 8238 | diff -udrNP putty-0.58.orig/rsaref/pkcs11t.h putty-0.58/rsaref/pkcs11t.h |
| 8241 | 8239 | --- putty-0.58.orig/rsaref/pkcs11t.h 1970-01-01 01:00:00.000000000 +0100 |
| 8242 | +++ putty-0.58/rsaref/pkcs11t.h 2005-04-08 14:52:42. |
|
| 8240 | +++ putty-0.58/rsaref/pkcs11t.h 2005-04-08 14:52:42.000000000 +0200 | |
| 8243 | 8241 | @@ -0,0 +1,1334 @@ |
| 8244 | 8242 | +/* pkcs11t.h include file for PKCS #11. 2001 June 25 */ |
| … | … | |
| 9578 | 9576 | diff -udrNP putty-0.58.orig/rsaref/unix.h putty-0.58/rsaref/unix.h |
| 9579 | 9577 | --- putty-0.58.orig/rsaref/unix.h 1970-01-01 01:00:00.000000000 +0100 |
| 9580 | +++ putty-0.58/rsaref/unix.h 2005-04-08 14:52:42. |
|
| 9578 | +++ putty-0.58/rsaref/unix.h 2005-04-08 14:52:42.000000000 +0200 | |
| 9581 | 9579 | @@ -0,0 +1,24 @@ |
| 9582 | 9580 | + |
| … | … | |
| 9606 | 9604 | diff -udrNP putty-0.58.orig/rsaref/win32.h putty-0.58/rsaref/win32.h |
| 9607 | 9605 | --- putty-0.58.orig/rsaref/win32.h 1970-01-01 01:00:00.000000000 +0100 |
| 9608 | +++ putty-0.58/rsaref/win32.h 2005-04-08 14:52:42. |
|
| 9606 | +++ putty-0.58/rsaref/win32.h 2005-04-08 14:52:42.000000000 +0200 | |
| 9609 | 9607 | @@ -0,0 +1,24 @@ |
| 9610 | 9608 | + |
| … | … | |
| 9634 | 9632 | diff -udrNP putty-0.58.orig/settings.c putty-0.58/settings.c |
| 9635 | 9633 | --- putty-0.58.orig/settings.c 2005-04-05 21:37:51.000000000 +0200 |
| 9636 | +++ putty-0.58/settings.c 2005-04-08 14:52:42. |
|
| 9634 | +++ putty-0.58/settings.c 2005-04-08 14:52:42.000000000 +0200 | |
| 9637 | 9635 | @@ -243,11 +243,16 @@ |
| 9638 | 9636 | write_setting_s(sesskey, "RekeyBytes", cfg->ssh_rekey_data); |
| … | … | |
| 9672 | 9670 | diff -udrNP putty-0.58.orig/smartcard_key_file.ppk putty-0.58/smartcard_key_file.ppk |
| 9673 | 9671 | --- putty-0.58.orig/smartcard_key_file.ppk 1970-01-01 01:00:00.000000000 +0100 |
| 9674 | +++ putty-0.58/smartcard_key_file.ppk 2005-04-08 15:03:45. |
|
| 9672 | +++ putty-0.58/smartcard_key_file.ppk 2005-04-08 15:03:45.000000000 +0200 | |
| 9675 | 9673 | @@ -0,0 +1,2 @@ |
| 9676 | 9674 | +PuTTY-User-Smartcard-Key-File- |
| … | … | |
| 9678 | 9676 | diff -udrNP putty-0.58.orig/ssh.c putty-0.58/ssh.c |
| 9679 | 9677 | --- putty-0.58.orig/ssh.c 2005-04-05 21:37:51.000000000 +0200 |
| 9680 | +++ putty-0.58/ssh.c 2005-04-08 1 |
|
| 9678 | +++ putty-0.58/ssh.c 2005-04-08 16:02:07.929356312 +0200 | |
| 9681 | 9679 | @@ -6,6 +6,11 @@ |
| 9682 | 9680 | #include "putty.h" |
| … | … | |
| 9711 | 9709 | /* logevent, only printf-formatted. */ |
| 9712 | 9710 | static void logeventf(Ssh ssh, const char *fmt, ...) |
| 9713 | @@ -2438,6 +2455,11 @@ | |
| 9714 | crFinishV; | |
| 9715 | } | |
| 9716 | ||
| 9717 | +void do_close(void * ssh) { | |
| 9718 | +// logevent("closing"); | |
| 9719 | + ssh_do_close( (Ssh) ssh); | |
| 9720 | +} | |
| 9721 | + | |
| 9722 | static int ssh_do_close(Ssh ssh, int notify_exit) | |
| 9723 | { | |
| 9724 | int ret = 0; | |
| 9725 | @@ -6274,7 +6296,7 @@ | |
| 9711 | @@ -6274,7 +6291,7 @@ | |
| 9726 | 9712 | { |
| 9727 | 9713 | struct do_ssh2_authconn_state { |
| … | … | |
| 9732 | 9718 | AUTH_KEYBOARD_INTERACTIVE |
| 9733 | 9719 | } method; |
| 9734 | @@ -6287,8 +630 |
|
| 9720 | @@ -6287,8 +6304,9 @@ | |
| 9735 | 9721 | AUTH_TYPE_KEYBOARD_INTERACTIVE, |
| 9736 | 9722 | AUTH_TYPE_KEYBOARD_INTERACTIVE_QUIET |
| … | … | |
| 9744 | 9730 | int we_are_in; |
| 9745 | 9731 | int num_prompts, curr_prompt, echo; |
| 9746 | @@ -6419,6 +64 |
|
| 9732 | @@ -6419,6 +6437,7 @@ | |
| 9747 | 9733 | |
| 9748 | 9734 | s->tried_pubkey_config = FALSE; |
| … | … | |
| 9752 | 9738 | s->kbd_inter_refused = FALSE; |
| 9753 | 9739 | /* Load the pub half of ssh->cfg.keyfile so we notice if it's in Pageant */ |
| 9754 | @@ -6444,7 +646 |
|
| 9740 | @@ -6444,7 +6463,15 @@ | |
| 9755 | 9741 | s->publickey_blob = NULL; |
| 9756 | 9742 | } |
| … | … | |
| 9760 | 9746 | + |
| 9761 | 9747 | + if (!loaded_pkcs11 && ssh->cfg.try_pkcs11_auth && !filename_is_null(ssh->cfg.pkcs11_libfile)) { |
| 9762 | + if( (s->can_pkcs11=init_pkcs11_library(( |
|
| 9748 | + if( (s->can_pkcs11=init_pkcs11_library((void *) ssh->frontend, (char *) &ssh->cfg.pkcs11_libfile)) ) { | |
| 9763 | 9749 | + loaded_pkcs11=1; |
| 9764 | 9750 | + } else { |
| … | … | |
| 9769 | 9755 | while (1) { |
| 9770 | 9756 | /* |
| 9771 | @@ -6559,6 +65 |
|
| 9757 | @@ -6559,6 +6586,7 @@ | |
| 9772 | 9758 | |
| 9773 | 9759 | s->can_pubkey = |
| … | … | |
| 9777 | 9763 | in_commasep_string("password", methods, methlen); |
| 9778 | 9764 | s->can_keyb_inter = ssh->cfg.try_ki_auth && |
| 9779 | @@ -6743,13 +677 |
|
| 9765 | @@ -6743,13 +6771,13 @@ | |
| 9780 | 9766 | sfree(s->response); |
| 9781 | 9767 | } |
| … | … | |
| 9794 | 9780 | ssh->pkt_ctx &= ~SSH2_PKTCTX_AUTH_MASK; |
| 9795 | 9781 | ssh->pkt_ctx |= SSH2_PKTCTX_PUBLICKEY; |
| 9796 | @@ -6760,12 +67 |
|
| 9782 | @@ -6760,12 +6788,26 @@ | |
| 9797 | 9783 | * First, offer the public blob to see if the server is |
| 9798 | 9784 | * willing to accept it. |
| … | … | |
| 9822 | 9808 | ssh2_pkt_addstring(s->pktout, s->username); |
| 9823 | 9809 | ssh2_pkt_addstring(s->pktout, "ssh-connection"); /* service requested */ |
| 9824 | @@ -6790,6 +683 |
|
| 9810 | @@ -6790,6 +6832,15 @@ | |
| 9825 | 9811 | * Actually attempt a serious authentication using |
| 9826 | 9812 | * the key. |
| … | … | |
| 9838 | 9824 | sprintf(s->pwprompt, |
| 9839 | 9825 | "Passphrase for key \"%.100s\": ", |
| 9840 | @@ -6798,12 +68 |
|
| 9826 | @@ -6798,12 +6849,13 @@ | |
| 9841 | 9827 | } else { |
| 9842 | 9828 | s->need_pw = FALSE; |
| … | … | |
| 9858 | 9844 | } |
| 9859 | 9845 | |
| 9860 | @@ -6947,24 + |
|
| 9846 | @@ -6947,24 +6999,38 @@ | |
| 9861 | 9847 | } |
| 9862 | 9848 | } |
| … | … | |
| 9902 | 9888 | /* Send a spurious AUTH_NONE to return to the top. */ |
| 9903 | 9889 | s->pktout = ssh2_pkt_init(SSH2_MSG_USERAUTH_REQUEST); |
| 9904 | @@ -7015,14 +708 |
|
| 9890 | @@ -7015,14 +7081,20 @@ | |
| 9905 | 9891 | s->pktout->length - 5); |
| 9906 | 9892 | p += s->pktout->length - 5; |
| … | … | |
| 9926 | 9912 | diff -udrNP putty-0.58.orig/ssh.h putty-0.58/ssh.h |
| 9927 | 9913 | --- putty-0.58.orig/ssh.h 2005-04-05 21:37:51.000000000 +0200 |
| 9928 | +++ putty-0.58/ssh.h 2005-04-08 15:03:25. |
|
| 9914 | +++ putty-0.58/ssh.h 2005-04-08 15:03:25.000000000 +0200 | |
| 9929 | 9915 | @@ -11,6 +11,10 @@ |
| 9930 | 9916 | extern void sshfwd_close(struct ssh_channel *c); |
| … | … | |
| 9950 | 9936 | diff -udrNP putty-0.58.orig/sshpubk.c putty-0.58/sshpubk.c |
| 9951 | 9937 | --- putty-0.58.orig/sshpubk.c 2005-04-05 21:37:51.000000000 +0200 |
| 9952 | +++ putty-0.58/sshpubk.c 2005-04-08 15:03:08. |
|
| 9938 | +++ putty-0.58/sshpubk.c 2005-04-08 15:03:08.000000000 +0200 | |
| 9953 | 9939 | @@ -1182,6 +1182,7 @@ |
| 9954 | 9940 | const char putty2_sig[] = "PuTTY-User-Key-File-"; |
| … | … | |
| 9970 | 9956 | diff -udrNP putty-0.58.orig/sshrsa.h putty-0.58/sshrsa.h |
| 9971 | 9957 | --- putty-0.58.orig/sshrsa.h 1970-01-01 01:00:00.000000000 +0100 |
| 9972 | +++ putty-0.58/sshrsa.h 2005-04-08 14:52:42. |
|
| 9958 | +++ putty-0.58/sshrsa.h 2005-04-08 14:52:42.000000000 +0200 | |
| 9973 | 9959 | @@ -0,0 +1,14 @@ |
| 9974 | 9960 | + |
| … | … | |
| 9988 | 9974 | diff -udrNP putty-0.58.orig/sshscard.c putty-0.58/sshscard.c |
| 9989 | 9975 | --- putty-0.58.orig/sshscard.c 1970-01-01 01:00:00.000000000 +0100 |
| 9990 | +++ putty-0.58/sshscard.c 2005-04-08 1 |
|
| 9976 | +++ putty-0.58/sshscard.c 2005-04-08 15:52:43.760123072 +0200 | |
| 9991 | 9977 | @@ -0,0 +1,366 @@ |
| 9992 | 9978 | +#include "ssh.h" |
| … | … | |
| 10024 | 10010 | + buf = dupvprintf(fmt, ap); |
| 10025 | 10011 | + va_end(ap); |
| 10026 | + logevent( |
|
| 10012 | + logevent(frontend,buf); | |
| 10027 | 10013 | + sfree(buf); |
| 10028 | 10014 | +} |
| … | … | |
| 10328 | 10314 | +#endif |
| 10329 | 10315 | + } |
| 10330 | + logevent( |
|
| 10316 | + logevent(frontend,"attempting pkcs11..."); | |
| 10331 | 10317 | + /* load module */ |
| 10332 | 10318 | + pkcs11_module=C_LoadModule(pkcs11_library_name,&pkcs11_funcs); |
| … | … | |
| 10334 | 10320 | +// load_pkcs11_module(pkcs11_library_name, ssh); |
| 10335 | 10321 | + if(pkcs11_module==NULL) { |
| 10336 | + logevent( |
|
| 10322 | + logevent(frontend,"Failed to load pkcs11 module"); | |
| 10337 | 10323 | + return 0; |
| 10338 | 10324 | + } |
| … | … | |
| 10358 | 10344 | diff -udrNP putty-0.58.orig/sshscard.h putty-0.58/sshscard.h |
| 10359 | 10345 | --- putty-0.58.orig/sshscard.h 1970-01-01 01:00:00.000000000 +0100 |
| 10360 | +++ putty-0.58/sshscard.h 2005-04-08 14:52:42. |
|
| 10346 | +++ putty-0.58/sshscard.h 2005-04-08 14:52:42.000000000 +0200 | |
| 10361 | 10347 | @@ -0,0 +1,15 @@ |
| 10362 | 10348 | + |
| … | … | |
| 10377 | 10363 | diff -udrNP putty-0.58.orig/unix/Makefile.gtk putty-0.58/unix/Makefile.gtk |
| 10378 | 10364 | --- putty-0.58.orig/unix/Makefile.gtk 2005-04-05 21:40:17.000000000 +0200 |
| 10379 | +++ putty-0.58/unix/Makefile.gtk 2005-04-08 1 |
|
| 10365 | +++ putty-0.58/unix/Makefile.gtk 2005-04-08 16:05:37.675470056 +0200 | |
| 10380 | 10366 | @@ -101,54 +101,57 @@ |
| 10381 | 10367 | |
| … | … | |
| 11445 | 11431 | diff -udrNP putty-0.58.orig/unix/Makefile.gtk.rej putty-0.58/unix/Makefile.gtk.rej |
| 11446 | 11432 | --- putty-0.58.orig/unix/Makefile.gtk.rej 1970-01-01 01:00:00.000000000 +0100 |
| 11447 | +++ putty-0.58/unix/Makefile.gtk.rej 2005-04-08 14:52:42. |
|
| 11433 | +++ putty-0.58/unix/Makefile.gtk.rej 2005-04-08 14:52:42.000000000 +0200 | |
| 11448 | 11434 | @@ -0,0 +1,232 @@ |
| 11449 | 11435 | +*************** |
| … | … | |
| 11681 | 11667 | diff -udrNP putty-0.58.orig/windows/MSVC/pageant/pageant.dsp putty-0.58/windows/MSVC/pageant/pageant.dsp |
| 11682 | 11668 | --- putty-0.58.orig/windows/MSVC/pageant/pageant.dsp 2005-04-05 21:40:17.000000000 +0200 |
| 11683 | +++ putty-0.58/windows/MSVC/pageant/pageant.dsp 2005-04-08 1 |
|
| 11669 | +++ putty-0.58/windows/MSVC/pageant/pageant.dsp 2005-04-08 16:05:37.643474920 +0200 | |
| 11684 | 11670 | @@ -94,6 +94,10 @@ |
| 11685 | 11671 | # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" |
| … | … | |
| 11704 | 11690 | # End Source File |
| 11705 | 11691 | # Begin Source File |
| 11706 | @@ -186,6 +194,10 @@ | |
| 11692 | @@ -142,6 +150,10 @@ | |
| 11693 | # End Source File | |
| 11694 | # Begin Source File | |
| 11695 | ||
| 11696 | +SOURCE=..\..\..\windows\windlg.c | |
| 11697 | +# End Source File | |
| 11698 | +# Begin Source File | |
| 11699 | + | |
| 11700 | SOURCE=..\..\..\windows\winmisc.c | |
| 11701 | # End Source File | |
| 11702 | # Begin Source File | |
| 11703 | @@ -166,6 +178,10 @@ | |
| 11704 | # End Source File | |
| 11705 | # Begin Source File | |
| 11706 | ||
| 11707 | +SOURCE=..\..\..\dialog.h | |
| 11708 | +# End Source File | |
| 11709 | +# Begin Source File | |
| 11710 | + | |
| 11711 | SOURCE=..\..\..\int64.h | |
| 11712 | # End Source File | |
| 11713 | # Begin Source File | |
| 11714 | @@ -186,6 +202,10 @@ | |
| 11707 | 11715 | # End Source File |
| 11708 | 11716 | # Begin Source File |
| … | … | |
| 11715 | 11723 | # End Source File |
| 11716 | 11724 | # Begin Source File |
| 11717 | @@ -198,10 +21 |
|
| 11725 | @@ -198,10 +218,38 @@ | |
| 11718 | 11726 | # End Source File |
| 11719 | 11727 | # Begin Source File |
| … | … | |
| 11747 | 11755 | +# Begin Source File |
| 11748 | 11756 | + |
| 11757 | +SOURCE=..\..\..\storage.h | |
| 11758 | +# End Source File | |
| 11759 | +# Begin Source File | |
| 11760 | + | |
| 11749 | 11761 | SOURCE=..\..\..\tree234.h |
| 11762 | # End Source File | |
| 11763 | # Begin Source File | |
| 11764 | @@ -214,6 +262,10 @@ | |
| 11765 | # End Source File | |
| 11766 | # Begin Source File | |
| 11767 | ||
| 11768 | +SOURCE=..\..\..\windows\win_res.h | |
| 11769 | +# End Source File | |
| 11770 | +# Begin Source File | |
| 11771 | + | |
| 11772 | SOURCE=..\..\..\windows\winhelp.h | |
| 11750 | 11773 | # End Source File |
| 11751 | 11774 | # Begin Source File |
| 11752 | 11775 | diff -udrNP putty-0.58.orig/windows/MSVC/plink/plink.dsp putty-0.58/windows/MSVC/plink/plink.dsp |
| 11753 | 11776 | --- putty-0.58.orig/windows/MSVC/plink/plink.dsp 2005-04-05 21:40:17.000000000 +0200 |
| 11754 | +++ putty-0.58/windows/MSVC/plink/plink.dsp 2005-04-08 1 |
|
| 11777 | +++ putty-0.58/windows/MSVC/plink/plink.dsp 2005-04-08 16:05:37.645474616 +0200 | |
| 11755 | 11778 | @@ -110,6 +110,14 @@ |
| 11756 | 11779 | # End Source File |
| … | … | |
| 11827 | 11850 | diff -udrNP putty-0.58.orig/windows/MSVC/pscp/pscp.dsp putty-0.58/windows/MSVC/pscp/pscp.dsp |
| 11828 | 11851 | --- putty-0.58.orig/windows/MSVC/pscp/pscp.dsp 2005-04-05 21:40:17.000000000 +0200 |
| 11829 | +++ putty-0.58/windows/MSVC/pscp/pscp.dsp 2005-04-08 1 |
|
| 11852 | +++ putty-0.58/windows/MSVC/pscp/pscp.dsp 2005-04-08 16:05:37.647474312 +0200 | |
| 11830 | 11853 | @@ -110,6 +110,14 @@ |
| 11831 | 11854 | # End Source File |
| … | … | |
| 11905 | 11928 | diff -udrNP putty-0.58.orig/windows/MSVC/psftp/psftp.dsp putty-0.58/windows/MSVC/psftp/psftp.dsp |
| 11906 | 11929 | --- putty-0.58.orig/windows/MSVC/psftp/psftp.dsp 2005-04-05 21:40:17.000000000 +0200 |
| 11907 | +++ putty-0.58/windows/MSVC/psftp/psftp.dsp 2005-04-08 1 |
|
| 11930 | +++ putty-0.58/windows/MSVC/psftp/psftp.dsp 2005-04-08 16:05:37.650473856 +0200 | |
| 11908 | 11931 | @@ -110,6 +110,14 @@ |
| 11909 | 11932 | # End Source File |
| … | … | |
| 11983 | 12006 | diff -udrNP putty-0.58.orig/windows/MSVC/putty/putty.dsp putty-0.58/windows/MSVC/putty/putty.dsp |
| 11984 | 12007 | --- putty-0.58.orig/windows/MSVC/putty/putty.dsp 2005-04-05 21:40:17.000000000 +0200 |
| 11985 | +++ putty-0.58/windows/MSVC/putty/putty.dsp 2005-04-08 1 |
|
| 12008 | +++ putty-0.58/windows/MSVC/putty/putty.dsp 2005-04-08 16:05:37.652473552 +0200 | |
| 11986 | 12009 | @@ -122,6 +122,14 @@ |
| 11987 | 12010 | # End Source File |
| … | … | |
| 12058 | 12081 | diff -udrNP putty-0.58.orig/windows/Makefile.bor putty-0.58/windows/Makefile.bor |
| 12059 | 12082 | --- putty-0.58.orig/windows/Makefile.bor 2005-04-05 21:40:17.000000000 +0200 |
| 12060 | +++ putty-0.58/windows/Makefile.bor 2005-04-08 1 |
|
| 12083 | +++ putty-0.58/windows/Makefile.bor 2005-04-08 16:05:37.606480544 +0200 | |
| 12061 | 12084 | @@ -102,55 +102,60 @@ |
| 12062 | 12085 | all: pageant.exe plink.exe pscp.exe psftp.exe putty.exe puttygen.exe \ |
| … | … | |
| 12070 | 12093 | + sshdes.obj sshdss.obj sshmd5.obj sshpubk.obj sshrsa.obj \ |
| 12071 | 12094 | + sshscard.obj sshsh512.obj sshsha.obj tree234.obj version.obj \ |
| 12072 | + win |
|
| 12095 | + windlg.obj winmisc.obj winpgnt.obj winpgntc.obj winutils.obj \ | |
| 12073 | 12096 | + pageant.rsp |
| 12074 | 12097 | ilink32 -aa -Gn -L$(BCB)\lib @pageant.rsp |
| … | … | |
| 12169 | 12192 | + echo sshdes.obj sshdss.obj sshmd5.obj sshpubk.obj + >> pageant.rsp |
| 12170 | 12193 | + echo sshrsa.obj sshscard.obj sshsh512.obj sshsha.obj + >> pageant.rsp |
| 12171 | + echo tree234.obj version.obj win |
|
| 12172 | + echo winpgnt |
|
| 12194 | + echo tree234.obj version.obj windlg.obj winmisc.obj + >> pageant.rsp | |
| 12195 | + echo winpgnt.obj winpgntc.obj winutils.obj >> pageant.rsp | |
| 12173 | 12196 | echo pageant.exe >> pageant.rsp |
| 12174 | 12197 | echo nul,cw32 import32, >> pageant.rsp |
| … | … | |
| 12347 | 12370 | diff -udrNP putty-0.58.orig/windows/Makefile.cyg putty-0.58/windows/Makefile.cyg |
| 12348 | 12371 | --- putty-0.58.orig/windows/Makefile.cyg 2005-04-05 21:40:17.000000000 +0200 |
| 12349 | +++ putty-0.58/windows/Makefile.cyg 2005-04-08 1 |
|
| 12372 | +++ putty-0.58/windows/Makefile.cyg 2005-04-08 16:05:37.581484344 +0200 | |
| 12350 | 12373 | @@ -101,96 +101,100 @@ |
| 12351 | 12374 | all: pageant.exe plink.exe pscp.exe psftp.exe putty.exe puttygen.exe \ |
| … | … | |
| 12361 | 12384 | +pageant.exe: libpkcs11.o misc.o pageant.res.o sshaes.o sshbn.o sshdes.o \ |
| 12362 | 12385 | + sshdss.o sshmd5.o sshpubk.o sshrsa.o sshscard.o sshsh512.o \ |
| 12363 | + sshsha.o tree234.o version.o win |
|
| 12364 | + win |
|
| 12386 | + sshsha.o tree234.o version.o windlg.o winmisc.o winpgnt.o \ | |
| 12387 | + winpgntc.o winutils.o | |
| 12365 | 12388 | + $(CC) -mwindows $(LDFLAGS) -o $@ -Wl,-Map,pageant.map libpkcs11.o \ |
| 12366 | 12389 | + misc.o pageant.res.o sshaes.o sshbn.o sshdes.o sshdss.o \ |
| 12367 | 12390 | + sshmd5.o sshpubk.o sshrsa.o sshscard.o sshsh512.o sshsha.o \ |
| 12368 | + tree234.o version.o win |
|
| 12391 | + tree234.o version.o windlg.o winmisc.o winpgnt.o winpgntc.o \ | |
| 12369 | 12392 | + winutils.o -ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 -limm32 \ |
| 12370 | 12393 | + -lshell32 -luser32 -lwinmm -lwinspool |
| … | … | |
| 12588 | 12611 | diff -udrNP putty-0.58.orig/windows/Makefile.lcc putty-0.58/windows/Makefile.lcc |
| 12589 | 12612 | --- putty-0.58.orig/windows/Makefile.lcc 2005-04-05 21:40:17.000000000 +0200 |
| 12590 | +++ putty-0.58/windows/Makefile.lcc 2005-04-08 1 |
|
| 12613 | +++ putty-0.58/windows/Makefile.lcc 2005-04-08 16:05:37.781453944 +0200 | |
| 12591 | 12614 | @@ -91,104 +91,110 @@ |
| 12592 | 12615 | all: pageant.exe plink.exe pscp.exe psftp.exe putty.exe puttygen.exe \ |
| … | … | |
| 12606 | 12629 | + sshdes.obj sshdss.obj sshmd5.obj sshpubk.obj sshrsa.obj \ |
| 12607 | 12630 | + sshscard.obj sshsh512.obj sshsha.obj tree234.obj version.obj \ |
| 12608 | + win |
|
| 12631 | + windlg.obj winmisc.obj winpgnt.obj winpgntc.obj winutils.obj | |
| 12609 | 12632 | + lcclnk -subsystem windows -o pageant.exe libpkcs11.obj misc.obj \ |
| 12610 | 12633 | + pageant.res sshaes.obj sshbn.obj sshdes.obj sshdss.obj \ |
| 12611 | 12634 | + sshmd5.obj sshpubk.obj sshrsa.obj sshscard.obj sshsh512.obj \ |
| 12612 | + sshsha.obj tree234.obj version.obj win |
|
| 12613 | + winpgnt |
|
| 12614 | + w |
|
| 12635 | + sshsha.obj tree234.obj version.obj windlg.obj winmisc.obj \ | |
| 12636 | + winpgnt.obj winpgntc.obj winutils.obj shell32.lib \ | |
| 12637 | + wsock32.lib ws2_32.lib winspool.lib winmm.lib imm32.lib | |
| 12615 | 12638 | |
| 12616 | 12639 | -plink.exe: be_all.obj cmdline.obj cproxy.obj ldisc.obj logging.obj misc.obj \ |
| … | … | |
| 12840 | 12863 | diff -udrNP putty-0.58.orig/windows/Makefile.vc putty-0.58/windows/Makefile.vc |
| 12841 | 12864 | --- putty-0.58.orig/windows/Makefile.vc 2005-04-05 21:40:17.000000000 +0200 |
| 12842 | +++ putty-0.58/windows/Makefile.vc 2005-04-08 1 |
|
| 12865 | +++ putty-0.58/windows/Makefile.vc 2005-04-08 16:05:37.628477200 +0200 | |
| 12843 | 12866 | @@ -91,55 +91,60 @@ |
| 12844 | 12867 | all: pageant.exe plink.exe pscp.exe psftp.exe putty.exe puttygen.exe \ |
| … | … | |
| 12852 | 12875 | + sshdes.obj sshdss.obj sshmd5.obj sshpubk.obj sshrsa.obj \ |
| 12853 | 12876 | + sshscard.obj sshsh512.obj sshsha.obj tree234.obj version.obj \ |
| 12854 | + win |
|
| 12877 | + windlg.obj winmisc.obj winpgnt.obj winpgntc.obj winutils.obj \ | |
| 12855 | 12878 | + pageant.rsp |
| 12856 | 12879 | link $(LFLAGS) -out:pageant.exe -map:pageant.map @pageant.rsp |
| … | … | |
| 12954 | 12977 | + echo sshdss.obj sshmd5.obj sshpubk.obj sshrsa.obj >> pageant.rsp |
| 12955 | 12978 | + echo sshscard.obj sshsh512.obj sshsha.obj tree234.obj >> pageant.rsp |
| 12956 | + echo user32.lib version.obj win |
|
| 12957 | + echo win |
|
| 12979 | + echo user32.lib version.obj windlg.obj winmisc.obj >> pageant.rsp | |
| 12980 | + echo winmm.lib winpgnt.obj winpgntc.obj winspool.lib >> pageant.rsp | |
| 12958 | 12981 | + echo winutils.obj >> pageant.rsp |
| 12959 | 12982 | |
| … | … | |
| 13131 | 13154 | diff -udrNP putty-0.58.orig/windows/winhelp.h putty-0.58/windows/winhelp.h |
| 13132 | 13155 | --- putty-0.58.orig/windows/winhelp.h 2005-04-05 21:37:38.000000000 +0200 |
| 13133 | +++ putty-0.58/windows/winhelp.h 2005-04-08 14:52:42. |
|
| 13156 | +++ putty-0.58/windows/winhelp.h 2005-04-08 14:52:42.000000000 +0200 | |
| 13134 | 13157 | @@ -99,6 +99,9 @@ |
| 13135 | 13158 | #define WINHELP_CTX_ssh_auth_changeuser "ssh.auth.changeuser" |
| … | … | |
| 13152 | 13175 | diff -udrNP putty-0.58.orig/windows/winpgnt.c putty-0.58/windows/winpgnt.c |
| 13153 | 13176 | --- putty-0.58.orig/windows/winpgnt.c 2005-04-05 21:37:38.000000000 +0200 |
| 13154 | +++ putty-0.58/windows/winpgnt.c 2005-04-08 15:12:43.0 |
|
| 13177 | +++ putty-0.58/windows/winpgnt.c 2005-04-08 15:12:43.000000000 +0200 | |
| 13155 | 13178 | @@ -15,6 +15,8 @@ |
| 13156 | 13179 | #include "misc.h" |