-
Notifications
You must be signed in to change notification settings - Fork 67
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
update ssl submodule for Mbed TLS 3.0.0 compat #27
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gstrauss
force-pushed
the
update-ssl-submodule
branch
from
July 24, 2024 02:14
5a0872e
to
7d3c160
Compare
gstrauss
force-pushed
the
update-ssl-submodule
branch
from
October 25, 2024 09:43
7d3c160
to
8eb1a6f
Compare
@zhaojh329 ping. Please review and then create a new release in #26. Thank you. |
1 task
@gstrauss: Good job! |
zhaojh329
reviewed
Oct 25, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/home/zjh/libuhttpd/src/connection.c: In function ‘ssl_negotiated’:
/home/zjh/libuhttpd/src/connection.c:835:16: error: ‘SSL_PENDING’ undeclared (first use in this function); did you mean ‘P_FD_PENDING’?
835 | if (ret == SSL_PENDING)
| ^~~~~~~~~~~
| P_FD_PENDING
/home/zjh/libuhttpd/src/connection.c:835:16: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:839:66: error: passing argument 1 of ‘ssl_last_error_string’ from incompatible pointer type [-Werror=incompatible-pointer-types]
839 | log_err("ssl connect error: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
| |
| char *
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:839:9: note: in expansion of macro ‘log_err’
839 | log_err("ssl connect error: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:47: note: expected ‘struct ssl *’ but argument is of type ‘char *’
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ~~~~~~~~~~~~^~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:839:75: error: passing argument 2 of ‘ssl_last_error_string’ makes pointer from integer without a cast [-Werror=int-conversion]
839 | log_err("ssl connect error: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~~~~~~~~~
| |
| long unsigned int
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:839:9: note: in expansion of macro ‘log_err’
839 | log_err("ssl connect error: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:58: note: expected ‘char *’ but argument is of type ‘long unsigned int’
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ~~~~~~^~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:839:44: error: too few arguments to function ‘ssl_last_error_string’
839 | log_err("ssl connect error: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~~~~~~~~~~~~~~~
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:839:9: note: in expansion of macro ‘log_err’
839 | log_err("ssl connect error: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:13: note: declared here
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c: In function ‘conn_ssl_read’:
/home/zjh/libuhttpd/src/connection.c:856:57: error: passing argument 1 of ‘ssl_last_error_string’ from incompatible pointer type [-Werror=incompatible-pointer-types]
856 | log_err("ssl_read: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
| |
| char *
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:856:9: note: in expansion of macro ‘log_err’
856 | log_err("ssl_read: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:47: note: expected ‘struct ssl *’ but argument is of type ‘char *’
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ~~~~~~~~~~~~^~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:856:66: error: passing argument 2 of ‘ssl_last_error_string’ makes pointer from integer without a cast [-Werror=int-conversion]
856 | log_err("ssl_read: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~~~~~~~~~
| |
| long unsigned int
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:856:9: note: in expansion of macro ‘log_err’
856 | log_err("ssl_read: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:58: note: expected ‘char *’ but argument is of type ‘long unsigned int’
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ~~~~~~^~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:856:35: error: too few arguments to function ‘ssl_last_error_string’
856 | log_err("ssl_read: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~~~~~~~~~~~~~~~
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:856:9: note: in expansion of macro ‘log_err’
856 | log_err("ssl_read: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:13: note: declared here
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ^~~~~~~~~~~~~~~~~~~~~
/home/zjh/libuhttpd/src/connection.c:860:16: error: ‘SSL_PENDING’ undeclared (first use in this function); did you mean ‘P_FD_PENDING’?
860 | if (ret == SSL_PENDING)
| ^~~~~~~~~~~
| P_FD_PENDING
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c: In function ‘conn_write_cb’:
/home/zjh/libuhttpd/src/connection.c:887:62: error: passing argument 1 of ‘ssl_last_error_string’ from incompatible pointer type [-Werror=incompatible-pointer-types]
887 | log_err("ssl_write: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
| |
| char *
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:887:13: note: in expansion of macro ‘log_err’
887 | log_err("ssl_write: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:47: note: expected ‘struct ssl *’ but argument is of type ‘char *’
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ~~~~~~~~~~~~^~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:887:71: error: passing argument 2 of ‘ssl_last_error_string’ makes pointer from integer without a cast [-Werror=int-conversion]
887 | log_err("ssl_write: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~~~~~~~~~
| |
| long unsigned int
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:887:13: note: in expansion of macro ‘log_err’
887 | log_err("ssl_write: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:58: note: expected ‘char *’ but argument is of type ‘long unsigned int’
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ~~~~~~^~~
In file included from /home/zjh/libuhttpd/src/uhttpd.h:36,
from /home/zjh/libuhttpd/src/uhttpd_internal.h:30,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/connection.c:887:40: error: too few arguments to function ‘ssl_last_error_string’
887 | log_err("ssl_write: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~~~~~~~~~~~~~~~
/home/zjh/libuhttpd/src/log/log.h:43:49: note: in definition of macro ‘log’
43 | ___log(__FILENAME__, __LINE__, pri, fmt); \
| ^~~
/home/zjh/libuhttpd/src/connection.c:887:13: note: in expansion of macro ‘log_err’
887 | log_err("ssl_write: %s\n", ssl_last_error_string(err_buf, sizeof(err_buf)));
| ^~~~~~~
In file included from /home/zjh/libuhttpd/src/uhttpd_internal.h:34,
from /home/zjh/libuhttpd/src/connection.c:33:
/home/zjh/libuhttpd/src/ssl/ssl.h:25:13: note: declared here
25 | const char *ssl_last_error_string(struct ssl *ssl, char *buf, int len);
| ^~~~~~~~~~~~~~~~~~~~~
/home/zjh/libuhttpd/src/connection.c:891:20: error: ‘SSL_PENDING’ undeclared (first use in this function); did you mean ‘P_FD_PENDING’?
891 | if (ret == SSL_PENDING)
| ^~~~~~~~~~~
| P_FD_PENDING
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/uhttpd.dir/build.make:90: src/CMakeFiles/uhttpd.dir/connection.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:166: src/CMakeFiles/uhttpd.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
zhaojh329/ssl@7be969c zhaojh329/ssl@856def8 Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
gstrauss
force-pushed
the
update-ssl-submodule
branch
from
October 25, 2024 14:54
8eb1a6f
to
b16c286
Compare
@zhaojh329 looks like you changed the interfaces in your |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
github: #26