Encode RSA public keys in RFC 3110 DNSKEY format
This commit is contained in:
committed by
Tobias Brunner
parent
f2145c8d3a
commit
a4ddc0bb26
@@ -76,6 +76,17 @@ bool get_form(char *form, cred_encoding_type_t *enc, credential_type_t type)
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
else if (streq(form, "dnskey"))
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case CRED_PUBLIC_KEY:
|
||||
*enc =PUBKEY_DNSKEY;
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user