in ports/Registration/src/aia_registration_config.c [60:86]
bool AiaGetAwsAccountId( char* awsAccountId, size_t* len )
{
if( !len )
{
AiaLogError( "Null len." );
return false;
}
size_t awsAccountIdLen = strlen( g_aiaAwsAccountId ) + 1;
if( !awsAccountIdLen )
{
AiaLogError( "Failed to retrieve AWS Account Id length" );
return false;
}
if( awsAccountId )
{
if( *len < awsAccountIdLen )
{
AiaLogError(
"awsAccountId buffer too small to hold AWS Account Id." );
return false;
}
strncpy( awsAccountId, g_aiaAwsAccountId, awsAccountIdLen );
}
*len = awsAccountIdLen;
return true;
}