The past tense of shake hands with an old friend is shook hands with an old friend.
The third-person singular simple present indicative form of shake hands with an old friend is shakes hands with an old friend.
The present participle of shake hands with an old friend is shaking hands with an old friend.
The past participle of shake hands with an old friend is shaken hands with an old friend.