mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-09-01 22:57:26 -04:00
Make daemon return decrypted data, not passphrase
This commit is contained in:
@@ -16,9 +16,10 @@ import (
|
||||
peercred "github.com/rwinkhart/peercred-mini"
|
||||
)
|
||||
|
||||
// Start should be called to serve the given passphrase through an RPC daemon.
|
||||
func Start(passphrase string) {
|
||||
// store passphrase to be referenced by GetPass method
|
||||
// Start is the entry point for the RPC server responsible for
|
||||
// returning decrypted data to authenticated clients.
|
||||
func Start(passphrase []byte) {
|
||||
// store passphrase to be referenced by DecryptRequest method
|
||||
globalPassphrase = passphrase
|
||||
|
||||
// register RCWService with the RPC package
|
||||
|
||||
Reference in New Issue
Block a user