Endocarp.

The innermost layer of the ovary wall (pericarp) of a fruit. In some fruits it becomes hard and "stony"; cf drupe