Browse Subversion Repository
Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ssh.h
Parent Directory
| Revision Log
| Patch
| 535 |
SSH_FP_BUBBLEBABBLE, |
SSH_FP_BUBBLEBABBLE, |
| 536 |
SSH_FP_RANDOMART |
SSH_FP_RANDOMART |
| 537 |
}; |
}; |
| 538 |
|
/* |
| 539 |
enum fp_type { |
enum fp_type { |
| 540 |
SSH_FP_MD5, |
SSH_FP_MD5, |
| 541 |
SSH_FP_SHA1, |
SSH_FP_SHA1, |
| 542 |
SSH_FP_SHA256 |
SSH_FP_SHA256 |
| 543 |
}; |
}; |
| 544 |
|
*/ |
| 545 |
|
typedef enum { |
| 546 |
|
SSH_DIGEST_MD5, |
| 547 |
|
SSH_DIGEST_RIPEMD160, |
| 548 |
|
SSH_DIGEST_SHA1, |
| 549 |
|
SSH_DIGEST_SHA256, |
| 550 |
|
SSH_DIGEST_SHA384, |
| 551 |
|
SSH_DIGEST_SHA512, |
| 552 |
|
SSH_DIGEST_MAX, |
| 553 |
|
} digest_algorithm; |
| 554 |
|
|
| 555 |
|
typedef struct ssh_digest { |
| 556 |
|
digest_algorithm id; |
| 557 |
|
const char *name; |
| 558 |
|
} ssh_digest_t; |
| 559 |
|
|
| 560 |
|
/* NB. Indexed directly by algorithm number */ |
| 561 |
|
static ssh_digest_t ssh_digests[] = { |
| 562 |
|
{ SSH_DIGEST_MD5, "MD5" }, |
| 563 |
|
{ SSH_DIGEST_RIPEMD160, "RIPEMD160" }, |
| 564 |
|
{ SSH_DIGEST_SHA1, "SHA1" }, |
| 565 |
|
{ SSH_DIGEST_SHA256, "SHA256" }, |
| 566 |
|
{ SSH_DIGEST_SHA384, "SHA384" }, |
| 567 |
|
{ SSH_DIGEST_SHA512, "SHA512" }, |
| 568 |
|
{ SSH_DIGEST_MAX, NULL }, |
| 569 |
|
}; |
| 570 |
|
|
| 571 |
enum scp_dir { |
enum scp_dir { |
| 572 |
TOREMOTE, FROMREMOTE, |
TOREMOTE, FROMREMOTE, |
| 716 |
int get_ssh2_mac_truncatebits(hmac_type type); |
int get_ssh2_mac_truncatebits(hmac_type type); |
| 717 |
char* get_ssh2_comp_name(compression_type type); |
char* get_ssh2_comp_name(compression_type type); |
| 718 |
char* get_ssh_keytype_name(ssh_keytype type); |
char* get_ssh_keytype_name(ssh_keytype type); |
| 719 |
|
char* get_digest_algorithm_name(digest_algorithm id); |
| 720 |
int get_cipher_discard_len(SSHCipher cipher); |
int get_cipher_discard_len(SSHCipher cipher); |
| 721 |
void ssh_heartbeat_lock_initialize(void); |
void ssh_heartbeat_lock_initialize(void); |
| 722 |
void ssh_heartbeat_lock_finalize(void); |
void ssh_heartbeat_lock_finalize(void); |
|
|
Legend:
| Removed from v.6118 |
|
| changed lines |
| |
Added in v.6120 |
|
|
| |