Encode RSA public keys in RFC 3110 DNSKEY format

This commit is contained in:
Andreas Steffen
2013-02-19 12:25:00 +01:00
committed by Tobias Brunner
parent f2145c8d3a
commit a4ddc0bb26
8 changed files with 155 additions and 3 deletions
+11
View File
@@ -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;
}