提交 31780d0e 编写于 作者: D Dr. Stephen Henson

Bugfix: don't look in internal table for signature if found in application

supplied list.
上级 f489ab31
......@@ -127,11 +127,14 @@ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
}
#ifndef OBJ_XREF_TEST2
rv = (nid_triple **)OBJ_bsearch((char *)&t,
if (rv == NULL)
{
rv = (nid_triple **)OBJ_bsearch((char *)&t,
(char *)sigoid_srt_xref,
sizeof(sigoid_srt_xref) / sizeof(nid_triple *),
sizeof(nid_triple *),
(int (*)(const void *, const void *))cmp_sigx);
}
#endif
if (rv == NULL)
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册