Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • GnuTLS GnuTLS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 252
    • Issues 252
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gnutlsgnutls
  • GnuTLSGnuTLS
  • Issues
  • #248
Closed
Open
Issue created Aug 16, 2017 by Gisle Vanem@gvanem

Compiling with DEBUG

In order for me to make sense of this library and maybe build with MSVC/clang-cl (fat chance!?), I added -DDEBUG to my CFLAGS. This caused this compile error in extensions.c:

extensions.c:220:51: error: 'internals_st {aka struct <anonymous>}' has no member named 'extensions_sent_size'
                 for (i = 0; i < session->internals.extensions_sent_size;
                                                   ^
In file included from str.h:28:0,
                 from gnutls_int.h:263,
                 from extensions.c:29:
extensions.c:225:68: error: 'internals_st {aka struct <anonymous>}' has no member named 'extensions_sent'
                              gnutls_ext_get_name(session->internals.
                                                                    ^

I'm not sure if this a fix, but at least it compiles:

--- a/extensions.c 2017-08-15 09:16:32
+++ b/extensions.c 2017-08-16 18:16:26
@@ -207,14 +207,12 @@
        int i;

        if (session->security_parameters.entity == GNUTLS_CLIENT)
-               for (i = 0; i < session->internals.extensions_sent_size;
+               for (i = 0; i < session->internals.rexts_size;
                     i++) {
+                       ext = &session->internals.rexts[i];
                        _gnutls_handshake_log
                            ("EXT[%d]: expecting extension '%s'\n",
-                            session,
-                            gnutls_ext_get_name(session->internals.
-                                                       extensions_sent
-                                                       [i]));
+                            i, gnutls_ext_get_name(ext->type));
                }
 #endif

Has anybody really built this package using MSVC?

Assignee
Assign to
Time tracking