aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf/config.go')
-rw-r--r--conf/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/config.go b/conf/config.go
index d802ec61..80c5a7e3 100644
--- a/conf/config.go
+++ b/conf/config.go
@@ -128,6 +128,10 @@ func NewPrivateKey() (*Key, error) {
return k, nil
}
+func NewPrivateKeyFromString(b64 string) (*Key, error) {
+ return parseKeyBase64(b64)
+}
+
func formatInterval(i int64, n string, l int) string {
r := ""
if l > 0 {