To express actions that occurred in the past, "had" is used plus the past participle.
A greeting, or an act showing that you have made an agreement, in which two people who are facing each other take hold of and shake each other's right hand