Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling docs/examples/sessioninfo.c #5171

Closed
gvanem opened this issue Mar 31, 2020 · 1 comment
Closed

Compiling docs/examples/sessioninfo.c #5171

gvanem opened this issue Mar 31, 2020 · 1 comment
Labels

Comments

@gvanem
Copy link
Contributor

gvanem commented Mar 31, 2020

Compiling this example, gives some warnings:

sessioninfo.c(62,34): warning: implicit declaration of function 'gnutls_x509_crt_init' is invalid in C99
      [-Wimplicit-function-declaration]
          if(GNUTLS_E_SUCCESS == gnutls_x509_crt_init(&cert)) {
                                 ^
sessioninfo.c(64,16): warning: implicit declaration of function 'gnutls_x509_crt_import' is invalid in C99
      [-Wimplicit-function-declaration]
               gnutls_x509_crt_import(cert, &chainp[i], GNUTLS_X509_FMT_DER)) {
               ^
...

I suggest we simply do like in vtls/gtls.c:

--- a/sessioninfo.c 2019-12-09 13:44:40
+++ b/sessioninfo.c 2020-03-31 11:49:52
@@ -31,6 +31,7 @@

 #include <curl/curl.h>
 #include <gnutls/gnutls.h>
+#include <gnutls/x509.h>
@bagder bagder added the TLS label Mar 31, 2020
@bagder bagder closed this as completed in e37dc71 Mar 31, 2020
@bagder
Copy link
Member

bagder commented Mar 31, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants