Driving in Croatia

We are planning to drive from Split to Dubrovnik. I noticed that the highway goes through Bosnia. Is this a problem? Do you have to go through border crossings?