Installing libreswan as per the wiki from smetest the package ldns is not a dependency, whilst it is when installing it from epel.
Which version ?
As far as I can see at the minute this is the package in the CentOS OS repo and epel:
libreswan-3.15-5.3.el6.x86_64.rpm
That may require ldns
The version in smetest is 3.16 and I think JPP used the srpm from libreswan.org here
https://download.libreswan.org/binaries/rhel/6Server/x86_64/He built from their source so I guess that ldns is not necessarily a requirement for it - I can't see a require in the spec file for 3.16 or 3.19 from their repo.
Personally I am running my own built 3.18 with 3.19 from the same repo.
For the smeserver-libreswan contrib you need >= 3.16 as there various fixes and additional functionality that was added that is used.
I am going to push both libreswan and smeserver-libreswan packages from test to contribs shortly unless there are any gotchas.
B. Rgds
JC