mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 15:29:48 +02:00
use pointers
This commit is contained in:
parent
54fb9fea04
commit
c34157d533
4 changed files with 69 additions and 49 deletions
|
@ -999,10 +999,10 @@ func (o *Options) GetSharedKey() ([]byte, error) {
|
|||
}
|
||||
|
||||
// GetHPKEPrivateKey gets the hpke.PrivateKey dervived from the shared key.
|
||||
func (o *Options) GetHPKEPrivateKey() (hpke.PrivateKey, error) {
|
||||
func (o *Options) GetHPKEPrivateKey() (*hpke.PrivateKey, error) {
|
||||
sharedKey, err := o.GetSharedKey()
|
||||
if err != nil {
|
||||
return hpke.PrivateKey{}, err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return hpke.DerivePrivateKey(sharedKey), nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue