Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c
Parent Directory
| Revision Log
| Patch
| 99 |
static TInstVar FAR *pvar; |
static TInstVar FAR *pvar; |
| 100 |
|
|
| 101 |
typedef struct { |
typedef struct { |
| 102 |
int cnt; |
int cnt; |
| 103 |
HWND dlg; |
HWND dlg; |
| 104 |
enum hostkey_type type; |
enum ssh_keytype type; |
| 105 |
} cbarg_t; |
} cbarg_t; |
| 106 |
|
|
| 107 |
/* WIN32 allows multiple instances of a DLL */ |
/* WIN32 allows multiple instances of a DLL */ |
| 2864 |
typedef struct { |
typedef struct { |
| 2865 |
RSA *rsa; |
RSA *rsa; |
| 2866 |
DSA *dsa; |
DSA *dsa; |
| 2867 |
enum hostkey_type type; |
enum ssh_keytype type; |
| 2868 |
} ssh_private_key_t; |
} ssh_private_key_t; |
| 2869 |
|
|
| 2870 |
static ssh_private_key_t private_key = {NULL, NULL, KEY_UNSPEC}; |
static ssh_private_key_t private_key = {NULL, NULL, KEY_UNSPEC}; |
| 2872 |
typedef struct { |
typedef struct { |
| 2873 |
RSA *rsa; |
RSA *rsa; |
| 2874 |
DSA *dsa; |
DSA *dsa; |
| 2875 |
enum hostkey_type type; |
enum ssh_keytype type; |
| 2876 |
} ssh_public_key_t; |
} ssh_public_key_t; |
| 2877 |
|
|
| 2878 |
static ssh_public_key_t public_key = {NULL, NULL, KEY_UNSPEC}; |
static ssh_public_key_t public_key = {NULL, NULL, KEY_UNSPEC}; |
| 2894 |
public_key.type = KEY_UNSPEC; |
public_key.type = KEY_UNSPEC; |
| 2895 |
} |
} |
| 2896 |
|
|
| 2897 |
static BOOL generate_ssh_key(enum hostkey_type type, int bits, void (*cbfunc)(int, int, void *), void *cbarg) |
static BOOL generate_ssh_key(enum ssh_keytype type, int bits, void (*cbfunc)(int, int, void *), void *cbarg) |
| 2898 |
{ |
{ |
| 2899 |
// if SSH key already is generated, should free the resource. |
// if SSH key already is generated, should free the resource. |
| 2900 |
free_ssh_key(); |
free_ssh_key(); |
| 3440 |
static BOOL CALLBACK TTXKeyGenerator(HWND dlg, UINT msg, WPARAM wParam, |
static BOOL CALLBACK TTXKeyGenerator(HWND dlg, UINT msg, WPARAM wParam, |
| 3441 |
LPARAM lParam) |
LPARAM lParam) |
| 3442 |
{ |
{ |
| 3443 |
static enum hostkey_type key_type; |
static enum ssh_keytype key_type; |
| 3444 |
char uimsg[MAX_UIMSG]; |
char uimsg[MAX_UIMSG]; |
| 3445 |
LOGFONT logfont; |
LOGFONT logfont; |
| 3446 |
HFONT font; |
HFONT font; |
|
|
Legend:
| Removed from v.4301 |
|
| changed lines |
| |
Added in v.4307 |
|
|
| |