See pic. Darnit, I thought these were called cotter pins, but ebay and Wiki use the term cotter pin to describe what I've always called split pins.
I need the right word, to find some longer ones of these online. Split pins won't do. Has to be these, which are springy hard steel that you press into a slightly under size hole.
This is for securing the head of a medium size sledge hammer.