MT#3939 API: Implement trusted source handling.