Hello, I discovered a problem in the OcspClientBouncyCastle class which results
in a null ocsp response to be returned ALWAYS. This class was working fine in a
previous version (5.1.3, of which I had a backup copy), but now in 5.3.3 it's
broken. I could detect the problem, in the GetEncoded method. Here are the 4
last lines of code of it: #1 Stream inp = response.GetResponseStream();
#2 OcspResp ocspResponse = new OcspResp(inp);
#3 inp.Close();
#4 return new OcspResp(RandomAccessFileOrArray.InputStreamToArray(inp)); This
code has 2 problems, first, the inp Stream is a network stream, so after
closing it in line #3 it is unusable later in #4.Besides that (and this is my
own point of view based in the other version of iText), the line #4 should be:
#4 return ocspResponse; In fact, that's what I've done in the source of 5.3.3
and it worked just fine. Hope this helps, I went nuts when tested some working
code and found that it stopped working =S ... =]Regards,Alex
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php