|
|
static const OspfTypes::AuType AUTH_TYPE | AUTH_TYPE |
const char* effective_name ()
| effective_name |
[const]
Get the effective name of the authentication scheme.
Returns: the name of the authentication scheme.
Reimplemented from AuthHandlerBase.
const char* auth_type_name ()
| auth_type_name |
[static]
Get the method-specific name of the authentication scheme.
Returns: the method-specific name of the authentication scheme.
void reset ()
| reset |
Reset the authentication state.
Reimplemented from AuthHandlerBase.
uint32_t additional_payload ()
| additional_payload |
[const]
Additional bytes that will be added to the payload.
Returns: the number of additional bytes that need to be added to the payload.
Reimplemented from AuthHandlerBase.
bool authenticate_inbound (const vector<uint8_t>& packet,
const IPv4& src_addr,
bool new_peer)
| authenticate_inbound |
Inbound authentication method.
Parameters:
packet | the packet to verify. |
src_addr | the source address of the packet. |
new_peer | true if this is a new peer. |
Returns: true if packet passes authentication checks, false otherwise.
Reimplemented from AuthHandlerBase.
bool authenticate_outbound (vector<uint8_t>& packet)
| authenticate_outbound |
Outbound authentication method.
Parameters:
packet | the packet to authenticate. |
Returns: true if packet was successfully authenticated, false when no valid keys are present.
Reimplemented from AuthHandlerBase.
const string& key ()
| key |
[const]
Get the authentication key.
Returns: the authentication key.
void set_key (const string& plaintext_key)
| set_key |
Set the authentication key.
Parameters:
plaintext_key | the plain-text key. |