x509_constraints_general_to_bytes
type = x509_constraints_general_to_bytes(ret, &bytes, &len);
name_type = x509_constraints_general_to_bytes(name, &bytes,
name_type = x509_constraints_general_to_bytes(constraint, &bytes, &len);
int x509_constraints_general_to_bytes(GENERAL_NAME *name, uint8_t **bytes,