Rate This Document
Findability
Accuracy
Completeness
Readability

SetRAAgentTokenUrl

Sets the communication URL of the remote attestation agent. The URL can be a domain name or an IP address + a port number.

Header File

#include "kdc_proxy.h"

Prototype

uint32_t SetRAAgentTokenUrl(const char *url);

Parameters

Parameter

Type

Required (Yes/No)

Description

url

const char*

Yes

Communication URL of the remote attestation agent. The value can be a domain name or an IP address + a port number.

Example 1: https://api.example.com/global-trust-authority/agent/v1/tokens

Example 2: https://127.0.0.1:8080/global-trust-authority/agent/v1/tokens

Return Values

Return Value

Description

0

Success

Non-zero

Failure. The parameter is invalid or the URL format is incorrect.

Examples

uint32_t ret = SetRAAgentTokenUrl("https://api.example.com/global-trust-authority/agent/v1/tokens");
if (ret != 0) {
// Handle the error.
}