Skip to content

Commit

Permalink
Keep the size of the structure the same in non-SSL build
Browse files Browse the repository at this point in the history
PUBLISHED_FROM=8f93bee72bc18efff64354203ee6268f4f8e8768
  • Loading branch information
rojer authored and cesantabot committed Jan 31, 2020
1 parent f00b3a2 commit 7153690
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/c-api/mg_net.h/struct_mg_connection.md
Expand Up @@ -61,6 +61,8 @@ signature: |
#if MG_ENABLE_SSL
void *ssl_if_data; /* SSL library data. */
#else
void *unused_ssl_if_data; /* To keep the size of the structure the same. */
#endif
};
---
Expand Down
2 changes: 2 additions & 0 deletions mongoose.h
Expand Up @@ -3635,6 +3635,8 @@ struct mg_connection {

#if MG_ENABLE_SSL
void *ssl_if_data; /* SSL library data. */
#else
void *unused_ssl_if_data; /* To keep the size of the structure the same. */
#endif
};

Expand Down
2 changes: 2 additions & 0 deletions src/mg_net.h
Expand Up @@ -155,6 +155,8 @@ struct mg_connection {

#if MG_ENABLE_SSL
void *ssl_if_data; /* SSL library data. */
#else
void *unused_ssl_if_data; /* To keep the size of the structure the same. */
#endif
};

Expand Down

0 comments on commit 7153690

Please sign in to comment.