MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / BN_bin2bn

Function BN_bin2bn

extra/yassl/src/ssl.cpp:979–996  ·  view source on GitHub ↗

convert positive big-endian num of length sz into retVal, which may need to be created

Source from the content-addressed store, hash-verified

977// convert positive big-endian num of length sz into retVal, which may need to
978// be created
979BIGNUM* BN_bin2bn(const unsigned char* num, int sz, BIGNUM* retVal)
980{
981 bool created = false;
982 mySTL::auto_ptr<BIGNUM> bn;
983
984 if (!retVal) {
985 created = true;
986 bn.reset(NEW_YS BIGNUM);
987 retVal = bn.get();
988 }
989
990 retVal->assign(num, sz);
991
992 if (created)
993 return bn.release();
994 else
995 return retVal;
996}
997
998
999unsigned long ERR_get_error_line_data(const char**, int*, const char**, int *)

Callers 2

SetDHFunction · 0.85
set_tmpDHFunction · 0.85

Calls 4

resetMethod · 0.45
getMethod · 0.45
assignMethod · 0.45
releaseMethod · 0.45

Tested by 1

set_tmpDHFunction · 0.68