The North Korean and Swedish foreign ministers ended three days of talks on the security situation on the Korean peninsula which may help prepare the way for a planned meeting between US President Donald Trump and Kim Jong Un.