mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-19 06:01:47 +00:00
Sort supported ECDSA curves names
To ensure options are always printed in the same order.
This commit is contained in:
parent
1f99a75049
commit
d7f8a05612
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"crypto/elliptic"
|
"crypto/elliptic"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
@ -124,5 +125,6 @@ func ecdsaCurves() []string {
|
||||||
for k := range supportedECDSACurves {
|
for k := range supportedECDSACurves {
|
||||||
keys = append(keys, k)
|
keys = append(keys, k)
|
||||||
}
|
}
|
||||||
|
sort.Strings(keys)
|
||||||
return keys
|
return keys
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue