Make daemon return decrypted data, not passphrase

This commit is contained in:
2025-05-08 18:47:35 +00:00
parent 949ef622c7
commit e7f041bb0a
9 changed files with 73 additions and 47 deletions
+5 -4
View File
@@ -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