find_issuer (gnutls_x509_crt_t cert,
	     const gnutls_x509_crt_t * trusted_cas, int tcas_size)
{
  int i;

  /* this is serial search. 
   */

  for (i = 0; i < tcas_size; i++)
    {
      if (is_issuer (cert, trusted_cas[i]) == 1)
	return trusted_cas[i];
    }

  gnutls_assert ();
  return NULL;
}
find_issuer (gnutls_x509_crt_t cert,
	     const gnutls_x509_crt_t * trusted_cas, int tcas_size)
{
  int i;

   

  for (i = 0; i < tcas_size; i++)
    {
      if (is_issuer (cert, trusted_cas[i]) == 1)
	return trusted_cas[i];
    }

  gnutls_assert ();
  return NULL;
}