Add support for RFC 6594 SSHFP DNS records.

https://fedorahosted.org/freeipa/ticket/2642
This commit is contained in:
Jan Cholasta
2013-01-08 16:13:07 +01:00
committed by Rob Crittenden
parent c1735e1c80
commit 86dde3a38e
3 changed files with 21 additions and 3 deletions

View File

@@ -139,6 +139,12 @@ def update_sshfp_record(zone, record, entry_attrs):
continue
if sshfp is not None:
sshfps.append(sshfp)
try:
sshfp = SSHPublicKey(pubkey).fingerprint_dns_sha256()
except ValueError, UnicodeDecodeError:
continue
if sshfp is not None:
sshfps.append(sshfp)
try:
api.Command['dnsrecord_mod'](zone, record, sshfprecord=sshfps)