3.2.5.6 Receiving an INQUIRE Message

When a PNRP node receives an INQUIRE message, it MUST perform the following steps:

  1. Check whether the INQUIRE message conforms to the syntax as specified in section 2.2.2.5, and drop the message if not. Otherwise, continue processing as follows.

  2. Check the Locally Registered PNRP ID List for the presence of the PNRP ID in the Validate PNRP ID field. If the PNRP ID is not found, the node MUST construct an AUTHORITY_BUFFER message with the N flag set, return it to the sender, and take no further action. Otherwise, continue processing as follows.

  3. If the PNRP ID is in the Locally Registered PNRP ID List, the node MUST construct an AUTHORITY_BUFFER message.

  4. If the A flag in the INQUIRE message is set, construct a CPA (as specified in section 3.2.5.7) for the locally registered PNRP ID, including the INQUIRE message. Nonce if supplied or assume the NONCE to be all zeros.

  5. If the C flag in the INQUIRE message is set, retrieve the Certificate Chain, if any, for the CPA message, and insert it into the AUTHORITY_BUFFER message.

  6. If the X flag in the INQUIRE message is set, retrieve the Extended Payload, if any, for the ID and insert it into the AUTHORITY_BUFFER message.

  7. Send the AUTHORITY_BUFFER message to the source of the INQUIRE message, as specified in section 3.2.5.10.