C++ native API for Viafirma

Althrough we already have support for .NET, Java and PHP, has been necessary to implement a native client for c++ for integration into an importan project of the banking sector.

You can download it from: http://code.google.com/p/viafirma-client-cpp/

// Configuration
std::string urlViafirma(“http://services.viafirma.com/viafirma/”);

// create instance of Viafirma client (dont share between threads)
viafirmaClient v(urlViafirma);

// Call to server
result=v.signByServer(nameFile,dataToSign,dataSize,alias,password,TYPE_FILE_BINARRY, TYPE_FORMAT_SIGN_BINARRY);
std::cout &lt;&lt; “TEST Sign method. Id sign:”&lt;<result; std::cout<<“nyou="" can="" see="" the="" verification="" info="" in:n="" “<<urlviafirma<<“="" v="" ”+result;="" ***************="" get="" signed="" document="" (cmd="" pkcs7="" format)="" std::string="" idsign="result;" signeddocument="" data:="" cmd="" info.data;="" std::cout<<“n="" id:”<<info.id;="" name="" document:”<<info.name;="" typefile:”<<info.typefile;="" type="" format="" sign:”<<info.typeformatsign;="" size:”<<info.data;="" size:”<<sizeof(info.data);="" <="" code="">

📢 WEBINAR · Seguridad y legalidad en los procesos de transformación digital = Firma Electrónica 📢

26 Mayo 2022 · 11:00h (hora Madrid GMT+2)