Ticket 49726 - DS only accepts RSA and Fortezza cipher families
Bug Description: Currently DS only accepts fortezza and RSA cipher families.
This prevents things like ECC certificates from being used.
Fix Description: Instead of hardcoding the cipher families, just grab the
current type and use it.
Also cleaned up code: removed unncessary "ifdefs", and switched
for loops to use size_t.
https://pagure.io/389-ds-base/issue/49726
Reviewed by: ?
(cherry picked from commit 27a16a068887e5b9fcab3b4507d58a18e6f1d1ec)