src/lib/openssl.c
void openssl_post_errors(JCR *jcr, int code, const char *errstring)
{
   char buf[512];
   unsigned long sslerr;

   /* Pop errors off of the per-thread queue */
   while((sslerr = ERR_get_error()) != 0) {
      /* Acquire the human readable string */
      ERR_error_string_n(sslerr, buf, sizeof(buf));
      Dmsg3(50, "jcr=%p %s: ERR=%s\n", jcr, errstring, buf);
      Qmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf);
   }
}
/*
 * Post all per-thread openssl errors
 */
Post all per-thread openssl errors
Post all per - thread openssl errors
void openssl_post_errors(JCR *jcr, int code, const char *errstring)
{
   char buf[512];
   unsigned long sslerr;
   while((sslerr = ERR_get_error()) != 0) {
      ERR_error_string_n(sslerr, buf, sizeof(buf));
      Dmsg3(50, "jcr=%p %s: ERR=%s\n", jcr, errstring, buf);
      Qmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf);
   }
}
void openssl_post_errors ( JCR * jcr , int code , const char * errstring ) { char buf [ 512 ] ; unsigned long sslerr ; while ( ( sslerr = ERR_get_error ( ) ) != 0 ) { ERR_error_string_n ( sslerr , buf , sizeof ( buf ) ) ; Dmsg3 ( 50 , " \n " , jcr , errstring , buf ) ; Qmsg2 ( jcr , M_ERROR , 0 , " \n " , errstring , buf ) ; } }
Post all per-thread openssl errors
Post all per - thread openssl errors
/* Pop errors off of the per-thread queue */ /* Acquire the human readable string */