Example #1
0
void MCSecurityEvalCipherNames(MCExecContext& ctxt, MCStringRef& r_names)
{
	MCAutoListRef t_list;
	MCAutoStringRef t_error;

#ifdef MCSSL
	if (SSL_ciphernames(&t_list, &t_error))
	{
		if (*t_error != nil)
			ctxt.SetTheResultToValue(*t_error);
		if (MCListCopyAsString(*t_list, r_names))
			return;
	}
#endif /* MCSSL */

	ctxt.Throw();
}