static void tls1_lookup_sigalg(int *phash_nid, int *psign_nid,
			int *psignhash_nid, const unsigned char *data)
	{
	int sign_nid, hash_nid;
	if (!phash_nid && !psign_nid && !psignhash_nid)
		return;
	if (phash_nid || psignhash_nid)
		{
		hash_nid = tls12_find_nid(data[0], tls12_md,
					sizeof(tls12_md)/sizeof(tls12_lookup));
		if (phash_nid)
			*phash_nid = hash_nid;
		}
	if (psign_nid || psignhash_nid)
		{
		sign_nid = tls12_find_nid(data[1], tls12_sig,
					sizeof(tls12_sig)/sizeof(tls12_lookup));
		if (psign_nid)
			*psign_nid = sign_nid;
		}
	if (psignhash_nid)
		{
		if (sign_nid && hash_nid)
			OBJ_find_sigid_by_algs(psignhash_nid,
							hash_nid, sign_nid);
		else
			*psignhash_nid = NID_undef;
		}
	}
['static void tls1_lookup_sigalg(int *phash_nid, int *psign_nid,\n\t\t\tint *psignhash_nid, const unsigned char *data)\n\t{\n\tint sign_nid, hash_nid;\n\tif (!phash_nid && !psign_nid && !psignhash_nid)\n\t\treturn;\n\tif (phash_nid || psignhash_nid)\n\t\t{\n\t\thash_nid = tls12_find_nid(data[0], tls12_md,\n\t\t\t\t\tsizeof(tls12_md)/sizeof(tls12_lookup));\n\t\tif (phash_nid)\n\t\t\t*phash_nid = hash_nid;\n\t\t}\n\tif (psign_nid || psignhash_nid)\n\t\t{\n\t\tsign_nid = tls12_find_nid(data[1], tls12_sig,\n\t\t\t\t\tsizeof(tls12_sig)/sizeof(tls12_lookup));\n\t\tif (psign_nid)\n\t\t\t*psign_nid = sign_nid;\n\t\t}\n\tif (psignhash_nid)\n\t\t{\n\t\tif (sign_nid && hash_nid)\n\t\t\tOBJ_find_sigid_by_algs(psignhash_nid,\n\t\t\t\t\t\t\thash_nid, sign_nid);\n\t\telse\n\t\t\t*psignhash_nid = NID_undef;\n\t\t}\n\t}']