-
Notifications
You must be signed in to change notification settings - Fork 57
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
Select cipher suites (2.) #148
Conversation
e78c641
to
3c8cf64
Compare
3c8cf64
to
9bd8d80
Compare
9bd8d80
to
cb16f58
Compare
cb16f58
to
968931d
Compare
As preparation for the implementation of RFC5746. |
74efc17
to
a2d5465
Compare
:-) the tests makefile doesn't support a common .o for the server and client. Any other ideas? |
c1499e9
to
a29015a
Compare
a29015a
to
5c6a0c5
Compare
5c6a0c5
to
971ffa7
Compare
971ffa7
to
581bc4c
Compare
Updated to include the |
Uups, sorry the source formatting of the previous add_ccm got lost. |
10cdae6
to
7919e5c
Compare
Polished :-). |
7919e5c
to
d7f8e3a
Compare
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.
A few minor comments.
I suggest the following change to tests/Makefile.in instead of including the dtls_cipher_util.c sources.
diff --git a/tests/Makefile.in b/tests/Makefile.in
index a3097d9..6b6d8bb 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -28,10 +28,10 @@ top_srcdir:= @top_srcdir@
# files and flags
SOURCES:= dtls-server.c ccm-test.c \
- dtls-client.c
+ dtls-client.c dtls_ciphers_util.c
#cbc_aes128-test.c #dsrv-test.c
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
-PROGRAMS:= $(patsubst %.c, %, $(SOURCES))
+PROGRAMS:=dtls-server dtls-client ccm-test
HEADERS:=
CFLAGS:=-Wall -std=c99 @CFLAGS@ @WARNING_CFLAGS@ $(EXTRA_CFLAGS) -D_GNU_SOURCE
CPPFLAGS:=-I$(top_srcdir) @CPPFLAGS@
@@ -47,6 +47,8 @@ FILES:=Makefile.in $(SOURCES) ccm-testdata.c #cbc_aes128-testdata.c
all: $(PROGRAMS)
+dtls-client dtls-server:: dtls_ciphers_util.o
+
check:
echo DISTDIR: $(DISTDIR)
echo top_builddir: $(top_builddir)
d7f8e3a
to
d25492a
Compare
Currently the console lines of the client and server exceeds the 80 characters. I would prefer to fix that with the PR for RFC5746. |
d25492a
to
387ba6a
Compare
Thanks for doing the updates. Do you have an opinion on the discussion topics that you have not addressed so far? |
Depends on the topics. To be frank, this PR spans now a long time. So I'm not sure, If I forgot something, if something is done in an other PR or what ever. If you like, just list or "renew" this other topics and we see, how we can deal with them. |
Here is the list. "Don't care" would be a valid reaction....:
Typos (did not check if they are fixed and just did not show up with this comment; feel free to ignore): |
suites. Adds dtls_user_parameters_t for these user parameters. Signed-off-by: Achim Kraus <[email protected]>
83c4027
to
6b02534
Compare
Except the topic with using utlist/uthash instead of a own array based implementation the other topics of the list are addressed. Please have a final check, then I would go to squash and merge this PR together with PR #147 into "main". |
Signed-off-by: Achim Kraus <[email protected]>
6b02534
to
f330e42
Compare
Introduce new cli argument -c. Signed-off-by: Achim Kraus <[email protected]>
f330e42
to
4a86dc7
Compare
Add callback for peer specific selection of cipher suites.