Bugfix: don't look in internal table for signature if found in application
supplied list.
This commit is contained in:
@@ -127,11 +127,14 @@ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef OBJ_XREF_TEST2
|
#ifndef OBJ_XREF_TEST2
|
||||||
|
if (rv == NULL)
|
||||||
|
{
|
||||||
rv = (nid_triple **)OBJ_bsearch((char *)&t,
|
rv = (nid_triple **)OBJ_bsearch((char *)&t,
|
||||||
(char *)sigoid_srt_xref,
|
(char *)sigoid_srt_xref,
|
||||||
sizeof(sigoid_srt_xref) / sizeof(nid_triple *),
|
sizeof(sigoid_srt_xref) / sizeof(nid_triple *),
|
||||||
sizeof(nid_triple *),
|
sizeof(nid_triple *),
|
||||||
(int (*)(const void *, const void *))cmp_sigx);
|
(int (*)(const void *, const void *))cmp_sigx);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (rv == NULL)
|
if (rv == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user