Bugzilla – Attachment 2399 Details for
Bug 2197
Add ED25519 support to SSHFP dns record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ed25519 sshfp dns
file_2197.txt (text/plain), 1.18 KB, created by
Loganaden Velvindron
on 2014-01-18 23:45:52 AEDT
(
hide
)
Description:
ed25519 sshfp dns
Filename:
MIME Type:
Creator:
Loganaden Velvindron
Created:
2014-01-18 23:45:52 AEDT
Size:
1.18 KB
patch
obsolete
>diff --git a/dns.c b/dns.c >index 630b97a..254f6c7 100644 >--- a/dns.c >+++ b/dns.c >@@ -96,6 +96,11 @@ dns_read_key(u_int8_t *algorithm, u_int8_t *digest_type, > if (!*digest_type) > *digest_type = SSHFP_HASH_SHA256; > break; >+ case KEY_ED25519: >+ *algorithm = SSHFP_KEY_ED25519; >+ if (!*digest_type) >+ *digest_type = SSHFP_HASH_SHA256; >+ break; > default: > *algorithm = SSHFP_KEY_RESERVED; /* 0 */ > *digest_type = SSHFP_HASH_RESERVED; /* 0 */ >diff --git a/dns.h b/dns.h >index d5f4281..3798e8a 100644 >--- a/dns.h >+++ b/dns.h >@@ -32,7 +32,8 @@ enum sshfp_types { > SSHFP_KEY_RESERVED = 0, > SSHFP_KEY_RSA = 1, > SSHFP_KEY_DSA = 2, >- SSHFP_KEY_ECDSA = 3 >+ SSHFP_KEY_ECDSA = 3, >+ SSHFP_KEY_ED25519 = 4 > }; > > enum sshfp_hashes { >diff --git a/ssh-keygen.c b/ssh-keygen.c >index eae83a4..9117a11 100644 >--- a/ssh-keygen.c >+++ b/ssh-keygen.c >@@ -2519,6 +2519,8 @@ main(int argc, char **argv) > _PATH_HOST_DSA_KEY_FILE, rr_hostname); > n += do_print_resource_record(pw, > _PATH_HOST_ECDSA_KEY_FILE, rr_hostname); >+ n += do_print_resource_record(pw, >+ _PATH_HOST_ED25519_KEY_FILE, rr_hostname); > > if (n == 0) > fatal("no keys found.");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2197
: 2399