information about alerts being handled and error messages to the <b>bio_err</b> BIO.</p>

<pre><code> void apps_ssl_info_callback(const SSL *s, int where, int ret)
 {
     const char *str;
     int w = where &amp; ~SSL_ST_MASK;

     if (w &amp; SSL_ST_CONNECT)
         str = &quot;SSL_connect&quot;;
     else if (w &amp; SSL_ST_ACCEPT)
         str = &quot;SSL_accept&quot;;
     else
         str = &quot;undefined&quot;;

     if (where &amp; SSL_CB_LOOP) {
         BIO_printf(bio_err, &quot;%s:%s\n&quot;,