version 1.25, 2008/06/12 00:03:49 |
version 1.26, 2010/02/26 20:29:54 |
|
|
*/ |
*/ |
static int |
static int |
dns_read_key(u_int8_t *algorithm, u_int8_t *digest_type, |
dns_read_key(u_int8_t *algorithm, u_int8_t *digest_type, |
u_char **digest, u_int *digest_len, const Key *key) |
u_char **digest, u_int *digest_len, Key *key) |
{ |
{ |
int success = 0; |
int success = 0; |
|
|
|
|
*/ |
*/ |
int |
int |
verify_host_key_dns(const char *hostname, struct sockaddr *address, |
verify_host_key_dns(const char *hostname, struct sockaddr *address, |
const Key *hostkey, int *flags) |
Key *hostkey, int *flags) |
{ |
{ |
u_int counter; |
u_int counter; |
int result; |
int result; |
|
|
* Export the fingerprint of a key as a DNS resource record |
* Export the fingerprint of a key as a DNS resource record |
*/ |
*/ |
int |
int |
export_dns_rr(const char *hostname, const Key *key, FILE *f, int generic) |
export_dns_rr(const char *hostname, Key *key, FILE *f, int generic) |
{ |
{ |
u_int8_t rdata_pubkey_algorithm = 0; |
u_int8_t rdata_pubkey_algorithm = 0; |
u_int8_t rdata_digest_type = SSHFP_HASH_SHA1; |
u_int8_t rdata_digest_type = SSHFP_HASH_SHA1; |