X509* CCertTools::GetX509FromDer(char *filePath)
{
  int content_length = 0;
  char* pContent = FileUtils::ReadFileContent(filePath, content_length);
  char* pTemp = pContent;
  X509* pCert = d2i_X509(NULL, (const unsigned char**)&pTemp, content_length);
  if (pContent!=NULL){
    free(pContent);
    pContent = NULL;
  }
  return pCert;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-17
  • 2022-12-23
  • 2021-07-26
  • 2021-07-08
相关资源
相似解决方案