<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1463086869020_2224"><span></span></div><div></div><div id="yui_3_16_0_ym19_1_1463086869020_2225"> </div><div class="signature" id="yui_3_16_0_ym19_1_1463086869020_2112"><div id="yui_3_16_0_ym19_1_1463086869020_2196">Hello</div><div id="yui_3_16_0_ym19_1_1463086869020_2196"><br></div><div id="yui_3_16_0_ym19_1_1463086869020_2196"><br></div><div id="yui_3_16_0_ym19_1_1463086869020_2196">Any thoughts on how the following can happen would be much appreciate.</div><div id="yui_3_16_0_ym19_1_1463086869020_2196"><br></div><div id="yui_3_16_0_ym19_1_1463086869020_2196"><br></div><div id="yui_3_16_0_ym19_1_1463086869020_2196">Have some code like this which is preceeded by creating a verify contxt etc etc just like examples::</div><div id="yui_3_16_0_ym19_1_1463086869020_2196"><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">...</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">...</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2901"> /* print verification result to stdout */</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2902"> if(dsigCtx->status == xmlSecDSigStatusSucceeded) {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2903"> fprintf(stdout, "RESULT: Signature is OK %d\n", dsigCtx->status);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2904"> } else {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2905"> fprintf(stdout, "RESULT: Signature is INVALID %d\n", dsigCtx->status);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2906"> }</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2907"> fprintf(stdout, "---------------------------------------------------\n");</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2908"><br id="yui_3_16_0_ym19_1_1463086869020_2909"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2910"><br id="yui_3_16_0_ym19_1_1463086869020_2911"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2912"> xmlSecDSigCtxDebugDump(dsigCtx, stdout);</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2913">...</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2913">...</div></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">And get the following output:<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2751">RESULT: Signature is INVALID 7219120</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2752">---------------------------------------------------</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2753">= VERIFICATION CONTEXT</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2754">== Status: succeeded</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2755">== flags: 0x0000000e</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2756">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2757">== Key Info Read Ctx:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2758">= KEY INFO READ CONTEXT</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2759">== flags: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2760">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2761">== enabled key data: all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2762">== RetrievalMethod level (cur/max): 0/1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2763">== TRANSFORMS CTX (status=0)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2764">== flags: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2765">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2766">== enabled transforms: all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2767">=== uri: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2768">=== uri xpointer expr: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2769">== EncryptedKey level (cur/max): 0/1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2770">=== KeyReq:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2771">==== keyId: rsa</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2772">==== keyType: 0x00000001</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2773">==== keyUsage: 0x00000002</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2774">==== keyBitsSize: 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2775">=== list size: 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2776">== Key Info Write Ctx:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2777">= KEY INFO WRITE CONTEXT</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2778">== flags: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2779">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2780">== enabled key data: all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2781">== RetrievalMethod level (cur/max): 0/1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2782">== TRANSFORMS CTX (status=0)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2783">== flags: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2784">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2785">== enabled transforms: all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2786">=== uri: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2787">=== uri xpointer expr: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2788">== EncryptedKey level (cur/max): 0/1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2789">=== KeyReq:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2790">==== keyId: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2791">==== keyType: 0x00000001</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2792">==== keyUsage: 0xffffffff</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2793">==== keyBitsSize: 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2794">=== list size: 0</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2795">== Signature Transform Ctx:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2796">== TRANSFORMS CTX (status=2)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2797">== flags: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2798">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2799">== enabled transforms: all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2800">=== uri: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2801">=== uri xpointer expr: NULL</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2802">=== Transform: exc-c14n (href=http://www.w3.org/2001/10/xml-exc-c14n#)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2803">=== Transform: membuf-transform (href=NULL)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2804">=== Transform: rsa-sha1 (href=http://www.w3.org/2000/09/xmldsig#rsa-sha1)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2805">=== Transform: membuf-transform (href=NULL)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2806">== Signature Method:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2807">=== Transform: rsa-sha1 (href=http://www.w3.org/2000/09/xmldsig#rsa-sha1)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2808">== Signature Key:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2809">== KEY</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2810">=== method: RSAKeyValue</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2811">=== key type: Public</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2812">=== key usage: -1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2813">=== key not valid before: 1458586152</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2814">=== key not valid after: 1774118952</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2815">=== rsa key: size = 2048</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2816">=== list size: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2817">=== X509 Data:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2818">==== Key Certificate:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2819">==== Subject Name: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2820">==== Issuer Name: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2821">==== Issuer Serial: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2822">==== Certificate:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2823">==== Subject Name: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2824">==== Issuer Name: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2825">==== Issuer Serial: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2826">== SignedInfo References List:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2827">=== list size: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2828">= REFERENCE VERIFICATION CONTEXT</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2829">== Status: succeeded</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2830">== URI: "#_c4e9522ba1289864766f54df6a04eae5b77fd7c70d"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2831">== Reference Transform Ctx:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2832">== TRANSFORMS CTX (status=2)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2833">== flags: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2834">== flags2: 0x00000000</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2835">== enabled transforms: all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2836">=== uri: </div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2837">=== uri xpointer expr: #_c4e9522ba1289864766f54df6a04eae5b77fd7c70d</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2838">=== Transform: xpointer (href=http://www.w3.org/2001/04/xmldsig-more/xptr)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2839">=== Transform: enveloped-signature (href=http://www.w3.org/2000/09/xmldsig#enveloped-signature)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2840">=== Transform: exc-c14n (href=http://www.w3.org/2001/10/xml-exc-c14n#)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2841">=== Transform: membuf-transform (href=NULL)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2842">=== Transform: sha1 (href=http://www.w3.org/2000/09/xmldsig#sha1)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2843">=== Transform: membuf-transform (href=NULL)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2844">== Digest Method:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2845">=== Transform: sha1 (href=http://www.w3.org/2000/09/xmldsig#sha1)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2846">== PreDigest data - start buffer:</div></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">....</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">....</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">....</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2512"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2512"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2512">Any ideas how this could happen?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2512"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2512">The dump prints the status as being successful.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2512">This as per the setting of the dsigCtx->status in</div></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">xmlSecDSigCtxDebugDump() function in xmldsig.c<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">But how is it printing some garbage value before hand? (7219120)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">Why is it not initialized or set to unknown/invalid. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">Would appreciate any insight? No other logs/erros from the xmlsec are evident.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334">Are there any other logs I could refer to?<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_3451">Would appreciate any thoughts. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_3452"><br id="yui_3_16_0_ym19_1_1463086869020_3453"></div></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1463086869020_2334"><br></div></div></div></div></body></html>