From the Economist:
Western proliferation-watchers believe Mr Khan initiated talks with North Korea as early as 1992, on the first of many visits, in order to get his hands on some of North Korea's Nodong missiles, whose range extends to 1,500km (930 miles). Although Pakistan denies it, its Ghauri missile, flight-tested in 1998, is reckoned to be a Nodong knock-off. The deal is thought to have been sealed the following year during a secret visit by Pakistan's prime minister of the day, Benazir Bhutto, whose father had launched Pakistan's secret bid for a bomb in the 1970s. Payment appears to have been in kind: North Korea received its first uranium-enrichment help by 1997.
(The US is claiming that the Libyan nuclear program had assistance from Pakistan. )