diff options
Diffstat (limited to 'receivepack/capabilities_defaults.go')
| -rw-r--r-- | receivepack/capabilities_defaults.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/receivepack/capabilities_defaults.go b/receivepack/capabilities_defaults.go new file mode 100644 index 00000000..72c36c30 --- /dev/null +++ b/receivepack/capabilities_defaults.go @@ -0,0 +1,17 @@ +package receivepack + +import ( + "crypto/rand" +) + +func defaultAgent() string { + return "furgit" +} + +func defaultSessionID() string { + return "furgit-" + rand.Text() +} + +func defaultPushCertNonce() string { + return "furgit-" + rand.Text() +} |
