Transfering ships

Greetings,

When transfering ships between navies of different nations, who has to have friendly relations whith whom?

The giver has to have friendly relations with receiver
the receiver has to have friendly relations with giver
Both have to have friendly relations with eachother?

Thanks

OK sorry I found the answer to my question.