Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rr.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ int extract_algorithm(char **s, char *what)
return ALG_ED25519;
if (strcmp(str_alg, "ed448") == 0)
return ALG_ED448;
if (strcmp(str_alg, "xmss") == 0)
return ALG_XMSS;

if (strcmp(str_alg, "privatedns") == 0)
return ALG_PRIVATEDNS;
Expand Down Expand Up @@ -909,6 +911,8 @@ int algorithm_type(int alg)
return ALG_ECC_FAMILY;
case ALG_ED448:
return ALG_ECC_FAMILY;
case ALG_XMSS:
return ALG_XMSS_FAMILY;
case ALG_PRIVATEDNS:
return ALG_PRIVATE_FAMILY;
case ALG_PRIVATEOID:
Expand Down
1 change: 1 addition & 0 deletions rr.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#define ALG_RSA_FAMILY 2
#define ALG_PRIVATE_FAMILY 3
#define ALG_ECC_FAMILY 4
#define ALG_XMSS_FAMILY 5

#define RRCAST(t) struct rr_ ## t *rr = (struct rr_ ## t *)rrv

Expand Down
2 changes: 1 addition & 1 deletion sshfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static struct rr* sshfp_parse(char *name, long ttl, int type, char *s)

algorithm = extract_integer(&s, "algorithm", NULL);
if (algorithm < 0) return NULL;
if (algorithm != 1 && algorithm != 2 && algorithm != 3 && algorithm != 4)
if (algorithm != 1 && algorithm != 2 && algorithm != 3 && algorithm != 4 && algorithm != 5 )
return bitch("unsupported algorithm");
rr->algorithm = algorithm;

Expand Down