On 11 May 2013 05:05, Lunar Mushrooms lunar.mushro...@gmail.com wrote:
Hello I can see a call to OBJ_bsearch_pmeth() in openssl source. By I could
not find the definition of OBJ_bsearch_pmeth(). I greped the entire source.
Can somebody help me to find the definition ?
./openssl-1.0.1d/crypto/evp/pmeth_lib.c:ret = OBJ_bsearch_pmeth(t,
standard_methods,
It's a hash define. Defined here in pmeth_lib:
IMPLEMENT_OBJ_BSEARCH_CMP_FN(const EVP_PKEY_METHOD *, const EVP_PKEY_METHOD *,
pmeth);
IMPLEMENT_OBJ_BSEARCH_CMP_FN is defined in objects.h:
#define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm)\
static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)\
{ \
type1 const *a = a_; \
type2 const *b = b_; \
return nm##_cmp(a,b); \
} \
static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \
{ \
return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \
nm##_cmp_BSEARCH_CMP_FN); \
} \
extern void dummy_prototype(void)
Matt
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager majord...@openssl.org