mirror of
https://github.com/restic/restic.git
synced 2026-08-09 07:03:17 +00:00
server/key: Rename CreateKey -> CreateMasterKey
This commit is contained in:
+3
-3
@@ -50,9 +50,9 @@ type Key struct {
|
||||
name string
|
||||
}
|
||||
|
||||
// CreateKey initializes a master key in the given backend and encrypts it with
|
||||
// the password.
|
||||
func CreateKey(s *Server, password string) (*Key, error) {
|
||||
// CreateMasterKey creates a new master key in the given backend and encrypts
|
||||
// it with the password.
|
||||
func CreateMasterKey(s *Server, password string) (*Key, error) {
|
||||
return AddKey(s, password, nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user