= How to incorporate a new version of axTLS

Upstream AxTLS project page: http://axtls.sourceforge.net/

This module contains a modified source files of axTLS.
Here's how to incorporate a new version of axTLS.

Suppose `$(AXTLS)` as the new axTLS source tree.

1. Copy the following files/directories into `axTLS/`
+
----
$(AXTLS)/Makefile
$(AXTLS)/ssl/
$(AXTLS)/crypto/
----

2. {blank}
+
[source,console]
----
$ mkdir -p axTLS/config
----

3. Apply the patch link:axtls.diff[].  You may need to tweak some
files (esp. link:axTLS/config/config.h[])
+
[source,console]
----
$ patch -p1 < axtls.diff
----

4. Compile and run tests.  Tweak the source if needed.

5. Regenerate `axtls.diff` by the following command:
+
[source,console]
----
$ gosh ./axtls-diff.scm $(AXTLS) > axtls.diff
----
