diff --git a/.gitmodules b/.gitmodules
index a18b9eb73f34f268fe4362ce650beb71beaeef47..b13eab1a8345024c5e059369ef45656b823ca2c8 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
-[submodule "tinydtls"]
+[submodule "DTLSSocket/tinydtls"]
 	path = DTLSSocket/tinydtls
-	url = https://git.eclipse.org/r/tinydtls/org.eclipse.tinydtls
+	url = https://github.com/eclipse/tinydtls.git
diff --git a/DTLSSocket.egg-info/PKG-INFO b/DTLSSocket.egg-info/PKG-INFO
new file mode 100644
index 0000000000000000000000000000000000000000..fdc60d7ccd39420f4fe7db7153bd7cfc064a07ce
--- /dev/null
+++ b/DTLSSocket.egg-info/PKG-INFO
@@ -0,0 +1,26 @@
+Metadata-Version: 2.1
+Name: DTLSSocket
+Version: 0.1.19
+Summary: DTLSSocket is a cython wrapper for tinydtls with a Socket like interface
+Home-page: https://git.fslab.de/jkonra2m/tinydtls-cython
+Author: Jannis Konrad
+Author-email: Kabel42@gmail.com
+License: UNKNOWN
+Platform: UNKNOWN
+Classifier: License :: OSI Approved :: Eclipse Public License 1.0 (EPL-1.0)
+Description-Content-Type: text/markdown
+License-File: LICENSE
+
+This is a cython wrapper for tinydtls.
+
+It currently implements a socket like Interface with sendmsg and readmsg.
+All other calls are passt to the underlying socket.
+
+For more info of tinydtls see https://projects.eclipse.org/projects/iot.tinydtls
+
+This Code was created at the [Multimedia Communication Laboratory](http://mc-lab.de) of the [Bonn-Rhein-Sieg University of Applied Sciences](http://h-brs.de)
+
+The Repo is hostet in our [GitLab](https://git.fslab.de/jkonra2m/tinydtls-cython)
+There is now also a mirror on [GitHub](https://github.com/kabel42/DTLSSocket)
+
+
diff --git a/DTLSSocket.egg-info/SOURCES.txt b/DTLSSocket.egg-info/SOURCES.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c57ed327400a65618305188b550dfdd8e9eb37df
--- /dev/null
+++ b/DTLSSocket.egg-info/SOURCES.txt
@@ -0,0 +1,13 @@
+LICENSE
+MANIFEST.in
+README.md
+pyproject.toml
+setup.py
+DTLSSocket/DTLSSocket.py
+DTLSSocket/__init__.py
+DTLSSocket/dtls.pyx
+DTLSSocket/tdtls.pxd
+DTLSSocket.egg-info/PKG-INFO
+DTLSSocket.egg-info/SOURCES.txt
+DTLSSocket.egg-info/dependency_links.txt
+DTLSSocket.egg-info/top_level.txt
\ No newline at end of file
diff --git a/DTLSSocket.egg-info/dependency_links.txt b/DTLSSocket.egg-info/dependency_links.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc
--- /dev/null
+++ b/DTLSSocket.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/DTLSSocket.egg-info/top_level.txt b/DTLSSocket.egg-info/top_level.txt
new file mode 100644
index 0000000000000000000000000000000000000000..428ead1b4911d02bbc3a722fb9be0821cba173c0
--- /dev/null
+++ b/DTLSSocket.egg-info/top_level.txt
@@ -0,0 +1 @@
+DTLSSocket
diff --git a/DTLSSocket/tinydtls b/DTLSSocket/tinydtls
index 9a3496119688047b6d8b79826f13425397d92e10..1f1bc2ab571ad67df55f3723b8d4aac98710acb9 160000
--- a/DTLSSocket/tinydtls
+++ b/DTLSSocket/tinydtls
@@ -1 +1 @@
-Subproject commit 9a3496119688047b6d8b79826f13425397d92e10
+Subproject commit 1f1bc2ab571ad67df55f3723b8d4aac98710acb9
diff --git a/dist/DTLSSocket-0.1.19-py3.10-linux-x86_64.egg b/dist/DTLSSocket-0.1.19-py3.10-linux-x86_64.egg
new file mode 100644
index 0000000000000000000000000000000000000000..0bdf0472b165860ed95633724c58cdd69c232a69
Binary files /dev/null and b/dist/DTLSSocket-0.1.19-py3.10-linux-x86_64.egg differ
diff --git a/setup.py b/setup.py
index 5fef81af5910a7c3a1267f0e8bcbed493f89d0f1..5eb1ab2febe9b03ec4bd15eea080f12e90e9f5b4 100644
--- a/setup.py
+++ b/setup.py
@@ -17,8 +17,7 @@ class prepare_tinydtls(build_ext):
                 sys.exit(1)
 
         commands =  [
-                    ["sh", "-c", "autoconf"],
-                    ["sh", "-c", "autoheader"],
+                    ["sh", "-c", "./autogen.sh"],
                     ["sh", "-c", "./configure"], # no --without-ecc
                     ]
         if not os.path.exists(os.path.join(os.path.dirname(__file__), 'DTLSSocket','tinydtls','dtls.c')):
@@ -56,6 +55,7 @@ setup(
                  "DTLSSocket/tinydtls/peer.c",
                  "DTLSSocket/tinydtls/session.c",
                  "DTLSSocket/tinydtls/aes/rijndael.c",
+                 "DTLSSocket/tinydtls/aes/rijndael_wrap.c",
                  "DTLSSocket/tinydtls/sha2/sha2.c",
                  "DTLSSocket/tinydtls/platform-specific/dtls_prng_posix.c",
                  ],
@@ -65,6 +65,7 @@ setup(
                                ('DTLS_CHECK_CONTENTTYPE', '1'),
                                ('_GNU_SOURCE', '1'),
                                 ('NDEBUG', '1'),
+                                ('uint8_t', 'u_int8_t'),
                               ],
 #                undef_macros = [ "NDEBUG" ],
                 ),]