transport: move the cert type enum to types.h

This should make the mingw compiler happy.