[gnutls-devel] GnuTLS | Add an option "--file-log" to redirect some information to a temporary file (!940)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Mar 1 18:03:11 CET 2019


Merge request https://gitlab.com/gnutls/gnutls/merge_requests/940 was reviewed by Nathaniel McCallum

--
  
Nathaniel McCallum started a new discussion on src/socket.c:

>  		if (socket->verbose)
> -			printf("Negotiating SMTP STARTTLS\n");
> +		fprintf(output_pointer ? output_pointer:stdout, "Negotiating SMTP STARTTLS\n");

If you follow my suggestion above, this line becomes: `log(stdout, "Negotiating SMTP STARTTLS\n");`

--
  
Nathaniel McCallum started a new discussion on src/socket.c:

>  #define MAX_BUF 4096
> -
> +extern FILE *output_pointer;

Why don't we make a `log()` function with the same signature as `fprintf()`? This function should wrap `vfprintf()` but should substitute the correct output file.


-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/940
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190301/cf5afdfa/attachment.html>


More information about the Gnutls-devel mailing list