[dns/SSHFP] Ajout des clef ecdsa et de l'algorithm de hash sha256 pour SSHFP (cf rfc6594)
This commit is contained in:
parent
1b44f5357d
commit
0587b59de9
3 changed files with 14 additions and 4 deletions
|
@ -379,8 +379,10 @@ zone "%(NOM_zone)s" {
|
|||
break
|
||||
if not algo:
|
||||
raise ValueError("Invalid Algorithms %s" % algo_txt)
|
||||
key=hashlib.sha1(base64.b64decode(key)).hexdigest()
|
||||
ligne +="%s\tIN\tSSHFP\t%s\t1\t%s\n" % (nom,algo,key)
|
||||
key1=hashlib.sha1(base64.b64decode(key)).hexdigest()
|
||||
key2=hashlib.sha256(base64.b64decode(key)).hexdigest()
|
||||
ligne +="%s\tIN\tSSHFP\t%s\t1\t%s\n" % (nom,algo,key1)
|
||||
ligne +="%s\tIN\tSSHFP\t%s\t2\t%s\n" % (nom,algo,key2)
|
||||
except(ValueError,TypeError): pass
|
||||
direct[zone] = direct.get(zone, "") + ligne
|
||||
if isinstance(machine,ldap_crans.BorneWifi):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue