3.1.5.5.1.1 Receiving a Response to an INQUIRE

The Outstanding Resolve table MUST be checked to find an entry that MAY have sent an INQUIRE message during a resolution. If one is not found, see section 3.1.5.5.1.2. Otherwise, continue processing as follows:

If the AUTHORITY message contains a CPA, then the node MUST pass the AUTHORITY_BUFFER to the SecurityModule for validation.

If validation fails, then the node MUST discard the AUTHORITY message, and attempt to pop a new entry from its BestMatchStack and place it (if any) in its CurrentBestMatch variable. If there is no new CurrentBestMatch, the node MUST return a failure to the higher-layer application or protocol; otherwise, the node MUST repeat the LOOKUP message procedure starting at step 7 of section 3.1.4.4.

If the resolve entry's ResolveReasonCode is equal to REASON_APP_REQUEST, the node MUST then return the endpoints information to the higher-layer application or protocol.