Late Justice Hans Raj Khanna, who inspired CJI Khanna in his endeavours, was a candidate for the country's top legal post in 1977.