<div dir="ltr">link: <a href="https://www.openssl.org/docs/man1.1.1/man3/X509_STORE_CTX_verify_cb.html">https://www.openssl.org/docs/man1.1.1/man3/X509_STORE_CTX_verify_cb.html</a><br><div><br></div><div>I am trying to figure out how this example works but it does not seem to bypass the (use the second example of  <span style="font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;background-color:rgb(0,43,54);color:rgb(0,255,0);font-size:13px">X509_V_ERR_CERT_HAS_EXPIRED) </span></div><div><span style="font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;background-color:rgb(0,43,54);color:rgb(0,255,0);font-size:13px"><br></span></div><div><span style="font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;background-color:rgb(0,43,54);font-size:13px"><font color="#eeeeee">However the caller code </font></span><span class="gmail-kt"><font color="#eeeeee">ll</font></span></div><div><span class="gmail-kt">long</span> <span class="gmail-n">res</span> <span class="gmail-o">=</span> <span class="gmail-n">SSL_get_verify_result</span><span class="gmail-p">(</span> sslCtx <span class="gmail-p">); still reports res NOT as X509_V_OK, which it should be oper the example since it is returning as 1.</span></div><div><br></div><div>I don't think I need to use X509_STORE_CTX_set_error(ctx, X509_V_OK);  before return 1 in the X509_STORE_CTX_verify_cb example.</div><div>Or am I missing something?</div><div>Thanjs</div><div><span class="gmail-p"><br></span></div><div><span class="gmail-p"><br></span></div><div><span style="font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;background-color:rgb(0,43,54);color:rgb(0,255,0);font-size:13px"><br></span></div><div><span style="font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;background-color:rgb(0,43,54);color:rgb(0,255,0);font-size:13px"><br></span></div></div>