summaryrefslogtreecommitdiffstats
path: root/models/asymkey/ssh_key_fingerprint.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/asymkey/ssh_key_fingerprint.go')
-rw-r--r--models/asymkey/ssh_key_fingerprint.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/asymkey/ssh_key_fingerprint.go b/models/asymkey/ssh_key_fingerprint.go
index 283b3d3b64..747a7e6473 100644
--- a/models/asymkey/ssh_key_fingerprint.go
+++ b/models/asymkey/ssh_key_fingerprint.go
@@ -76,7 +76,8 @@ func calcFingerprintNative(publicKeyContent string) (string, error) {
return ssh.FingerprintSHA256(pk), nil
}
-func calcFingerprint(publicKeyContent string) (string, error) {
+// CalcFingerprint calculate public key's fingerprint
+func CalcFingerprint(publicKeyContent string) (string, error) {
// Call the method based on configuration
var (
fnName, fp string