Develop and Download Open Source Software
Login
Create Account
Help
MY OSDN
Find Software
Magazine
Develop
Pastebin
Software
People
PersonalForge
Magazine
Wiki
OSDN
>
Find Software
>
Tera Term
Tera Term
Summary
Project Summary
Developer Dashboard
Project Reviews
Web Page
Developers
List of RSS Feeds
Statistics
History
Image Gallery
Search Keywords
News
Listed News
Help
Downloads
List of Releases
Help
Source Code
Guide
Browse CVS
Browse SVN
Help
Wiki
FrontPage
Title index
Recent changes
Wiki Search
Help
Docs
List Docs
Help
Forums
List of Forums
Open Discussion (173)
Help (428)
Help
Mailing Lists
list of ML
ttssh2-commit
ttssh2-dev
ttssh2-users
Help
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Help
Browse Subversion Repository
/
[ttssh2]
/
trunk
/
ttssh2
/
ttxssh
/
hosts.c
Diff of /trunk/ttssh2/ttxssh/hosts.c
Parent Directory
|
Revision Log
|
Patch
revision
4304
by
maya
, Mon Feb 14 09:09:07 2011 UTC
revision
4307
by
maya
, Tue Feb 15 09:00:01 2011 UTC
#
Line 811
static BOOL match_key(PTInstVar pvar, Ke
Line 811
static BOOL match_key(PTInstVar pvar, Ke
811
BN_cmp(key->rsa->e, pvar->hosts_state.hostkey.rsa->e) == 0 &&
BN_cmp(key->rsa->e, pvar->hosts_state.hostkey.rsa->e) == 0 &&
812
BN_cmp(key->rsa->n, pvar->hosts_state.hostkey.rsa->n) == 0;
BN_cmp(key->rsa->n, pvar->hosts_state.hostkey.rsa->n) == 0;
813
814
} else { // // SSH2 DSA host public key
} else if (key->type == KEY_DSA) { // SSH2 DSA host public key
815
816
return key->dsa != NULL && pvar->hosts_state.hostkey.dsa &&
return key->dsa != NULL && pvar->hosts_state.hostkey.dsa &&
817
BN_cmp(key->dsa->p, pvar->hosts_state.hostkey.dsa->p) == 0 &&
BN_cmp(key->dsa->p, pvar->hosts_state.hostkey.dsa->p) == 0 &&
#
Line 820
static BOOL match_key(PTInstVar pvar, Ke
Line 820
static BOOL match_key(PTInstVar pvar, Ke
820
BN_cmp(key->dsa->pub_key, pvar->hosts_state.hostkey.dsa->pub_key) == 0;
BN_cmp(key->dsa->pub_key, pvar->hosts_state.hostkey.dsa->pub_key) == 0;
821
822
}
}
823
else {
824
return FALSE;
825
}
826
827
}
}
828
#
Line 889
static char FAR *format_host_key(PTInstV
Line 892
static char FAR *format_host_key(PTInstV
892
int host_len = strlen(pvar->hosts_state.prefetched_hostname);
int host_len = strlen(pvar->hosts_state.prefetched_hostname);
893
char *result = NULL;
char *result = NULL;
894
int index;
int index;
895
enum hostkey_type type = pvar->hosts_state.hostkey.type;
enum ssh_keytype type = pvar->hosts_state.hostkey.type;
896
897
if (type == KEY_RSA1) {
if (type == KEY_RSA1) {
898
int result_len = host_len + 50 + 8 +
int result_len = host_len + 50 + 8 +
Colored Diff
Long Colored Diff
Full Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.4304
changed lines
Added in v.4307
Back to OSDN
">
Back to OSDN
ViewVC Help
Powered by
ViewVC 1.1.26