From 3eea38d69c47bdf706f32c31c80c47b76d0d70e6 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sun, 26 Jan 2014 03:19:21 +0100 Subject: [PATCH] [config/dns] Plusieurs algo de hash possiblent pour sshfp --- gestion/config/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gestion/config/config.py b/gestion/config/config.py index 6fec9028..33856570 100644 --- a/gestion/config/config.py +++ b/gestion/config/config.py @@ -120,7 +120,17 @@ sshfp_algo = { "ecdsa" : (3, "ecdsa-sha2-nistp521"), } +sshfs_ralgo = {} +for key,value in sshfp_algo.items(): + sshfs_ralgo[value[1]] = (value[0], key) + +sshfp_hash = { + "sha1" : 1, + "sha256" : 2, +} + sshkey_max_age=2*(365.25*24*3600) + sshkey_size = { 'rsa':4096, 'dsa':1024,