> it looks quite similar to the PoDoFo's podofosign tool. What is the > difference?
podofosign tool required arguments are: -cert [certfile] ... a file with a PEM-encoded certificate to include in the document -pkey [pkeyfile] ... a file with a PEM-encoded private key to sign the document with but the private key in a file is hardly used anymore. Digital signature regulations require cryptographic hardware, such as smart cards and hsm, to hold the private key. I would be happy to include the code I wrote in podofo but currently the libraries that I used are in development and in alpha version (openssl 3 and our pkcs11 engine) Tell me how you want to proceed. Bye, Antonio On Mon, Jun 15, 2020 at 9:16 AM zyx <z...@gmx.us> wrote: > > On Fri, 2020-06-12 at 11:28 +0200, Christian Sakowski wrote: > > this patch is currently not part of the trunk but very important! Can > > someone check this in, please? > > Hi, > thanks for the reminder. I missed it in the mailing list. > > That patch, even the file itself, is a nice mix of different coding > styles. Not a big deal, just being noticed. > > It introduced a new compiler warning here: > > .../src/podofo/doc/PdfImage.cpp: In function ‘void > PoDoFo::LoadFromPngContent(png_structp, png_infop, PoDoFo::PdfImage*)’: > .../src/podofo/doc/PdfImage.cpp:934:91: warning: suggest parentheses around > ‘&&’ within ‘||’ [-Wparentheses] > 934 | color_type == PNG_COLOR_TYPE_PALETTE && png_get_valid(pPng, > pInfo, PNG_INFO_tRNS) && png_get_tRNS(pPng, pInfo, &paletteTrans, > &numTransColors, NULL)) > | > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > which I fixed before committing. I also made the LoadFromPngContent() a > static function. > > I cannot really test this, thus I trust you with this. > > The patch had been committed as r2011: > http://sourceforge.net/p/podofo/code/2011 > > Thanks and bye, > zyx > > > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users