mirror of
https://github.com/slackhq/nebula.git
synced 2026-01-21 03:51:33 -08:00
review comments
This commit is contained in:
parent
147637c3fc
commit
1c12358fdd
1 changed files with 1 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ func (cc *CachedCertificate) String() string {
|
|||
// Recombine will attempt to unmarshal a certificate received in a handshake.
|
||||
// Handshakes save space by placing the peers public key in a different part of the packet, we have to
|
||||
// reassemble the actual certificate structure with that in mind.
|
||||
// Implementations MUST assert the public key is not in the raw certificate bytes if the passed in public key is not empty.
|
||||
func Recombine(v Version, rawCertBytes, publicKey []byte, curve Curve) (Certificate, error) {
|
||||
if publicKey == nil {
|
||||
return nil, ErrNoPeerStaticKey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue