he shook a dogs mouth with his hand
it was weird..but it sort of looked like the dog expected it. maybe it was trained to do it.
...or he had a previous relationship with the dog...
https://www.dailydogdiscoveries.com/ways-dogs-greet-each-other/
At least he stopped short of sniffing its ass.