mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-28 04:46:42 -04:00
Make daemon return decrypted data, not passphrase
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/Microsoft/go-winio" // For Windows named pipes
|
||||
"github.com/Microsoft/go-winio"
|
||||
"github.com/rwinkhart/peercred-mini"
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
@@ -21,9 +21,10 @@ const (
|
||||
PROCESS_QUERY_LIMITED_INFORMATION = 0x1000
|
||||
)
|
||||
|
||||
// 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