d.
      */
     if (depth &gt; mydata-&gt;verify_depth) {
         preverify_ok = 0;
         err = X509_V_ERR_CERT_CHAIN_TOO_LONG;
         X509_STORE_CTX_set_error(ctx, err);
     }
     if (!preverify_ok) {
         printf(&quot;verify error:num=%d:%s:depth=%d:%s\n&quot;, err,
                X509_verify_cert_error_string(err), depth, buf);
     } else if (mydata-&gt;verbose_mode) {
         printf(&quot;depth=%d:%s\n&quot;, depth, buf);
     }

     /*
      * At this point, err contains the last verif