built up without accessing structures directly. Update ca.c to use new functions. Fix ca.c so it now build CRLs correctly again.