包含头文件:openssl/err.h
//加载错误信息
ERR_load_ERR_strings();
ERR_load_crypto_strings();
unsigned long ulErr = ERR_get_error(); // 获取错误号
char szErrMsg[1024] = {0};
char *pTmp = NULL;
pTmp = ERR_error_string(ulErr,szErrMsg); // 格式:error:errId:库:函数:原因
ERR_lib_error_string()// 库 函数在哪个库中
ERR_func_error_string()// 函数名
ERR_reason_error_string()// 出错的具体原因