convert positive big-endian num of length sz into retVal, which may need to be created
| 977 | // convert positive big-endian num of length sz into retVal, which may need to |
| 978 | // be created |
| 979 | BIGNUM* 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 | |
| 999 | unsigned long ERR_get_error_line_data(const char**, int*, const char**, int *) |