Skip to content

Commit

Permalink
customize: password: use SHA-512 on openSUSE >= 11.0
Browse files Browse the repository at this point in the history
openSUSE 11.0 has glibc 2.8, which supports the SHA-512 method.
Fallback to an explicit MD5 for older versions.
  • Loading branch information
ptoscano committed Sep 8, 2015
1 parent f788b3c commit 1b4c1d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions customize/password.ml
Expand Up @@ -162,6 +162,9 @@ and default_crypto g root =
| "ubuntu", v when v >= 10 -> `SHA512
| "ubuntu", _ -> `MD5

| "opensuse", v when v >= 11 -> `SHA512
| "opensuse", _ -> `MD5

| _, _ ->
let minor = g#inspect_get_minor_version root in
warning (f_"password: using insecure md5 password encryption for guest of type %s version %d.%d.
Expand Down

0 comments on commit 1b4c1d7

Please sign in to comment.