     printf(&quot;depth=%d:%s\n&quot;, depth, buf);
    }

    /*
     * At this point, err contains the last verification error. We can use
     * it for something special
     */
    if (!preverify_ok &amp;&amp; (err == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT)) {
        X509_NAME_oneline(X509_get_issuer_name(err_cert), buf, 256);
        printf(&quot;issuer= %s\n&quot;, buf);
    }

    if (mydata-&gt;always_continue)
        return 1;
    else
        return preverify_ok;
}
...

mydata_t mydata;

...
mydat