Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Initiator ¶
type Initiator struct { // InitialSegset is the set of segments that is initially available to the // Initiator. It may be the result of querying the SCION daemon or it can // be set manually for testing, e.g., when no SCION daemon is available. InitialSegset segment.SegmentSet // Filter is the segment filter according to which the Initiator gives // consent to certain segments or combinations of segments. Filter segment.Filter // Verbose is a flag which makes the Initiator more verbose if true. Verbose bool }
Initiator represents a CONPASS agent in the initiator role.
func (Initiator) NegotiateOver ¶
func (agent Initiator) NegotiateOver(stream io.ReadWriter) (segment.SegmentSet, error)
NegotiateOver makes the Initiator negotiate consent over a given bytestream. If the negotiation is successful, the method returns the set of segments that have bilateral consent. Otherwise, an error is returned.
type Responder ¶
type Responder struct { // Filter is the segment filter according to which the Responder gives // consent to certain segments or combinations of segments. Filter segment.Filter // Verbose is a flag which makes the Responder more verbose if true. Verbose bool }
Responder represents a CONPASS agent in the responder role.
func (Responder) NegotiateOver ¶
func (agent Responder) NegotiateOver(stream io.ReadWriter) (segment.SegmentSet, error)
NegotiateOver makes the Responder negotiate consent over a given bytestream. If the negotiation is successful, the method returns the set of segments that have bilateral consent. Otherwise, an error is returned.
Click to show internal directories.
Click to hide internal directories.