diff --git a/gnutls-3.8.10-disable-ktls_test.patch b/gnutls-3.8.10-disable-ktls_test.patch
deleted file mode 100644
index 8060e59..0000000
--- a/gnutls-3.8.10-disable-ktls_test.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Index: gnutls-3.8.10/tests/Makefile.am
-===================================================================
---- gnutls-3.8.10.orig/tests/Makefile.am
-+++ gnutls-3.8.10/tests/Makefile.am
-@@ -527,13 +527,13 @@ if !WINDOWS
- #
-
- if ENABLE_KTLS
--indirect_tests += gnutls_ktls
--dist_check_SCRIPTS += ktls.sh
-+#indirect_tests += gnutls_ktls
-+#dist_check_SCRIPTS += ktls.sh
-
--indirect_tests += ktls_keyupdate
--ktls_keyupdate_SOURCES = tls13/key_update.c
--ktls_keyupdate_CFLAGS = -DUSE_KTLS
--dist_check_SCRIPTS += ktls_keyupdate.sh
-+#indirect_tests += ktls_keyupdate
-+#ktls_keyupdate_SOURCES = tls13/key_update.c
-+#ktls_keyupdate_CFLAGS = -DUSE_KTLS
-+#dist_check_SCRIPTS += ktls_keyupdate.sh
- endif
-
- dist_check_SCRIPTS += dtls/dtls.sh #dtls/dtls-resume.sh #dtls/dtls-nb
diff --git a/gnutls-3.8.10.tar.xz b/gnutls-3.8.10.tar.xz
deleted file mode 100644
index d7947df..0000000
--- a/gnutls-3.8.10.tar.xz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:db7fab7cce791e7727ebbef2334301c821d79a550ec55c9ef096b610b03eb6b7
-size 6909856
diff --git a/gnutls-3.8.10.tar.xz.sig b/gnutls-3.8.10.tar.xz.sig
deleted file mode 100644
index bf232f9..0000000
Binary files a/gnutls-3.8.10.tar.xz.sig and /dev/null differ
diff --git a/gnutls-3.8.11.tar.xz b/gnutls-3.8.11.tar.xz
new file mode 100644
index 0000000..1aa100a
--- /dev/null
+++ b/gnutls-3.8.11.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:91bd23c4a86ebc6152e81303d20cf6ceaeb97bc8f84266d0faec6e29f17baa20
+size 6939944
diff --git a/gnutls-3.8.11.tar.xz.sig b/gnutls-3.8.11.tar.xz.sig
new file mode 100644
index 0000000..4d74e21
Binary files /dev/null and b/gnutls-3.8.11.tar.xz.sig differ
diff --git a/gnutls-FIPS-140-3-references.patch b/gnutls-FIPS-140-3-references.patch
index defd6cb..4a45a12 100644
--- a/gnutls-FIPS-140-3-references.patch
+++ b/gnutls-FIPS-140-3-references.patch
@@ -1,8 +1,8 @@
-Index: gnutls-3.8.10/configure.ac
+Index: gnutls-3.8.11/configure.ac
===================================================================
---- gnutls-3.8.10.orig/configure.ac
-+++ gnutls-3.8.10/configure.ac
-@@ -665,19 +665,19 @@ LT_INIT([disable-static,win32-dll,shared
+--- gnutls-3.8.11.orig/configure.ac
++++ gnutls-3.8.11/configure.ac
+@@ -664,19 +664,19 @@ LT_INIT([disable-static,win32-dll,shared
AC_LIB_HAVE_LINKFLAGS(dl,, [#include ], [dladdr (0, 0);])
AC_ARG_ENABLE(fips140-mode,
@@ -25,10 +25,10 @@ Index: gnutls-3.8.10/configure.ac
AC_ARG_WITH(fips140-module-name, AS_HELP_STRING([--with-fips140-module-name],
[specify the FIPS140 module name]),
-Index: gnutls-3.8.10/doc/cha-gtls-app.texi
+Index: gnutls-3.8.11/doc/cha-gtls-app.texi
===================================================================
---- gnutls-3.8.10.orig/doc/cha-gtls-app.texi
-+++ gnutls-3.8.10/doc/cha-gtls-app.texi
+--- gnutls-3.8.11.orig/doc/cha-gtls-app.texi
++++ gnutls-3.8.11/doc/cha-gtls-app.texi
@@ -222,7 +222,7 @@ CPU. The currently available options are
@end itemize
@@ -38,10 +38,10 @@ Index: gnutls-3.8.10/doc/cha-gtls-app.texi
if set to one it will force the FIPS mode enablement.
@end multitable
-Index: gnutls-3.8.10/doc/cha-internals.texi
+Index: gnutls-3.8.11/doc/cha-internals.texi
===================================================================
---- gnutls-3.8.10.orig/doc/cha-internals.texi
-+++ gnutls-3.8.10/doc/cha-internals.texi
+--- gnutls-3.8.11.orig/doc/cha-internals.texi
++++ gnutls-3.8.11/doc/cha-internals.texi
@@ -14,7 +14,7 @@ happens inside the black box.
* TLS Hello Extension Handling::
* Cryptographic Backend::
@@ -162,11 +162,11 @@ Index: gnutls-3.8.10/doc/cha-internals.texi
operation. It can be attached to the current execution thread with
@funcref{gnutls_fips140_push_context} and its internal state will be
updated until it is detached with
-Index: gnutls-3.8.10/doc/enums.texi
+Index: gnutls-3.8.11/doc/enums.texi
===================================================================
---- gnutls-3.8.10.orig/doc/enums.texi
-+++ gnutls-3.8.10/doc/enums.texi
-@@ -1230,7 +1230,7 @@ application traffic secret is installed
+--- gnutls-3.8.11.orig/doc/enums.texi
++++ gnutls-3.8.11/doc/enums.texi
+@@ -1236,7 +1236,7 @@ application traffic secret is installed
@c gnutls_fips_mode_t
@table @code
@item GNUTLS_@-FIPS140_@-DISABLED
@@ -175,7 +175,7 @@ Index: gnutls-3.8.10/doc/enums.texi
@item GNUTLS_@-FIPS140_@-STRICT
The default mode; all forbidden operations will cause an
operation failure via error code.
-@@ -1238,8 +1238,8 @@ operation failure via error code.
+@@ -1244,8 +1244,8 @@ operation failure via error code.
A transient state during library initialization. That state
cannot be set or seen by applications.
@item GNUTLS_@-FIPS140_@-LAX
@@ -186,10 +186,10 @@ Index: gnutls-3.8.10/doc/enums.texi
application is aware of the followed security policy, and needs
to utilize disallowed operations for other reasons (e.g., compatibility).
@item GNUTLS_@-FIPS140_@-LOG
-Index: gnutls-3.8.10/doc/functions/gnutls_fips140_set_mode
+Index: gnutls-3.8.11/doc/functions/gnutls_fips140_set_mode
===================================================================
---- gnutls-3.8.10.orig/doc/functions/gnutls_fips140_set_mode
-+++ gnutls-3.8.10/doc/functions/gnutls_fips140_set_mode
+--- gnutls-3.8.11.orig/doc/functions/gnutls_fips140_set_mode
++++ gnutls-3.8.11/doc/functions/gnutls_fips140_set_mode
@@ -3,7 +3,7 @@
@@ -215,19 +215,19 @@ Index: gnutls-3.8.10/doc/functions/gnutls_fips140_set_mode
values for @code{mode} or to @code{GNUTLS_FIPS140_SELFTESTS} mode, the library
switches to @code{GNUTLS_FIPS140_STRICT} mode.
-Index: gnutls-3.8.10/doc/gnutls.html
+Index: gnutls-3.8.11/doc/gnutls.html
===================================================================
---- gnutls-3.8.10.orig/doc/gnutls.html
-+++ gnutls-3.8.10/doc/gnutls.html
+--- gnutls-3.8.11.orig/doc/gnutls.html
++++ gnutls-3.8.11/doc/gnutls.html
@@ -490,7 +490,7 @@ Documentation License”.
11.4 TLS Extension Handling
- 11.5 Cryptographic Backend
+ 11.5 Cryptographic Backend
11.6 Random Number Generators
-- 11.7 FIPS140-2 mode
-+ 11.7 FIPS140-3 mode
+- 11.7 FIPS140-2 mode
++ 11.7 FIPS140-3 mode
- Appendix A Upgrading from previous versions
- Appendix B Support
+ Appendix A Upgrading from previous versions
+ Appendix B Support
@@ -9050,7 +9050,7 @@ CPU. The currently available options are
0x200000: Enable VIA PHE
0x400000: Enable VIA PHE SHA512
@@ -237,7 +237,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
if set to one it will force the FIPS mode enablement.
-@@ -18547,7 +18547,7 @@ None:
+@@ -18559,7 +18559,7 @@ None:
--inline-commands-prefix=str Change the default delimiter for inline commands
--provider=file Specify the PKCS #11 provider library
- file must pre-exist
@@ -246,7 +246,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
--list-config Reports the configuration of the library
--logfile=str Redirect informational messages to a specific file
--keymatexport=str Label used for exporting keying material
-@@ -19567,7 +19567,7 @@ happens inside the black box.
+@@ -19579,7 +19579,7 @@ happens inside the black box.
TLS Extension Handling
Cryptographic Backend
Random Number Generators
@@ -255,7 +255,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
@@ -302,7 +302,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
as follows.
-@@ -20261,12 +20261,12 @@ as follows.
+@@ -20273,12 +20273,12 @@ as follows.
- Algorithm self-tests are run on library load
@@ -318,7 +318,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
Any cryptographic operation will be refused if any of the self-tests failed
-@@ -20275,7 +20275,7 @@ modified as follows.
+@@ -20287,7 +20287,7 @@ modified as follows.
environment variable GNUTLS_SKIP_FIPS_INTEGRITY_CHECKS will disable
the library integrity tests on startup, and the variable
GNUTLS_FORCE_FIPS_MODE can be set to force a value from
@@ -327,7 +327,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
mode, while ’0’ will disable it.
The integrity checks for the dependent libraries and GnuTLS are performed
-@@ -20283,13 +20283,13 @@ using ’.hmac’ files which ar
+@@ -20295,13 +20295,13 @@ using ’.hmac’ files which ar
key for the operations can be provided on compile-time with the configure
option ’–with-fips140-key’. The MAC algorithm used is HMAC-SHA256.
@@ -344,7 +344,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
the application can relax these requirements via gnutls_fips140_set_mode
which can switch to alternative modes as in Figure 11.5.
-@@ -20298,7 +20298,7 @@ which can switch to alternative modes as
+@@ -20310,7 +20310,7 @@ which can switch to alternative modes as
GNUTLS_FIPS140_DISABLED
@@ -353,7 +353,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
GNUTLS_FIPS140_STRICT
The default mode; all forbidden operations will cause an
-@@ -20309,8 +20309,8 @@ operation failure via error code.
+@@ -20321,8 +20321,8 @@ operation failure via error code.
cannot be set or seen by applications.
GNUTLS_FIPS140_LAX
@@ -364,7 +364,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
application is aware of the followed security policy, and needs
to utilize disallowed operations for other reasons (e.g., compatibility).
-@@ -20321,7 +20321,7 @@ to a message to the audit callback funct
+@@ -20333,7 +20333,7 @@ to a message to the audit callback funct
Figure 11.5: The gnutls_fips_mode_t enumeration.
The intention of this API is to be used by applications which may run in
@@ -373,7 +373,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
e.g., for non-security related purposes. In these cases applications should
wrap the non-compliant code within blocks like the following.
-@@ -20350,9 +20350,9 @@ if (gnutls_fips140_mode_enabled())
+@@ -20362,9 +20362,9 @@ if (gnutls_fips140_mode_enabled())
The reason of the GNUTLS_FIPS140_SET_MODE_THREAD flag in the
previous calls is to localize the change in the mode. Note also, that
such a block has no effect when the library is not operating
@@ -385,7 +385,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
gnutls_fips140_set_mode(GNUTLS_FIPS140_LAX, 0);
-@@ -20375,7 +20375,7 @@ performed within a given context.
+@@ -20387,7 +20387,7 @@ performed within a given context.
int gnutls_fips140_pop_context ( void)
@@ -394,7 +394,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
operation. It can be attached to the current execution thread with
gnutls_fips140_push_context and its internal state will be
updated until it is detached with
-@@ -20748,8 +20748,8 @@ Previous:
@@ -405,16 +405,16 @@ Index: gnutls-3.8.10/doc/gnutls.html
-@@ -24680,7 +24680,7 @@ unusable. This function is not thread-s
+@@ -24725,7 +24725,7 @@ unusable. This function is not thread-s
gnutls_fips140_set_mode ¶
-
- - Function:
void gnutls_fips140_set_mode (gnutls_fips_mode_t mode, unsigned flags) ¶
+
+ - Function:
void gnutls_fips140_set_mode (gnutls_fips_mode_t mode, unsigned flags) ¶
-mode: the FIPS140-2 mode to switch to
+
mode: the FIPS140-3 mode to switch to
flags: should be zero or GNUTLS_FIPS140_SET_MODE_THREAD
-@@ -24689,13 +24689,13 @@ unusable. This function is not thread-s
+@@ -24734,13 +24734,13 @@ unusable. This function is not thread-s
behavior with no flags after threads are created is undefined.
When the flag GNUTLS_FIPS140_SET_MODE_THREAD is specified
@@ -430,7 +430,7 @@ Index: gnutls-3.8.10/doc/gnutls.html
values for mode or to GNUTLS_FIPS140_SELFTESTS mode, the library
switches to GNUTLS_FIPS140_STRICT mode.
-@@ -47153,7 +47153,7 @@ Next: | gnutls_fingerprint | Core TLS API |
| gnutls_fips140_context_deinit | Core TLS API |
| gnutls_fips140_context_init | Core TLS API |
@@ -439,11 +439,11 @@ Index: gnutls-3.8.10/doc/gnutls.html
| gnutls_fips140_get_operation_state | Core TLS API |
| gnutls_fips140_mode_enabled | Core TLS API |
| gnutls_fips140_pop_context | Core TLS API |
-Index: gnutls-3.8.10/doc/gnutls.info-3
+Index: gnutls-3.8.11/doc/gnutls.info-3
===================================================================
---- gnutls-3.8.10.orig/doc/gnutls.info-3
-+++ gnutls-3.8.10/doc/gnutls.info-3
-@@ -2319,7 +2319,7 @@ to ‘more’. Both will exit with a st
+--- gnutls-3.8.11.orig/doc/gnutls.info-3
++++ gnutls-3.8.11/doc/gnutls.info-3
+@@ -2322,7 +2322,7 @@ to ‘more’. Both will exit with a st
--inline-commands-prefix=str Change the default delimiter for inline commands
--provider=file Specify the PKCS #11 provider library
- file must pre-exist
@@ -461,7 +461,7 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
File: gnutls.info, Node: The TLS Protocol, Next: TLS Handshake Protocol, Up: Internal architecture of GnuTLS
-@@ -4000,7 +4000,7 @@ and abstract key types::.
+@@ -3996,7 +3996,7 @@ and abstract key types::.
kernel implementation of ‘/dev/crypto’.
@@ -470,7 +470,7 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
11.6 Random Number Generators
=============================
-@@ -4010,7 +4010,7 @@ About the generators
+@@ -4006,7 +4006,7 @@ About the generators
GnuTLS provides two random generators. The default, and the AES-DRBG
random generator which is only used when the library is compiled with
@@ -479,7 +479,7 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
The default generator - inner workings
--------------------------------------
-@@ -4241,7 +4241,7 @@ in *note Figure 11.5: gnutls_fips_mode_t
+@@ -4237,7 +4237,7 @@ in *note Figure 11.5: gnutls_fips_mode_t
Figure 11.5: The ‘gnutls_fips_mode_t’ enumeration.
The intention of this API is to be used by applications which may run in
@@ -488,7 +488,7 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
set, e.g., for non-security related purposes. In these cases
applications should wrap the non-compliant code within blocks like the
following.
-@@ -4265,10 +4265,10 @@ are macros to simplify the following seq
+@@ -4261,10 +4261,10 @@ are macros to simplify the following seq
The reason of the ‘GNUTLS_FIPS140_SET_MODE_THREAD’ flag in the previous
calls is to localize the change in the mode. Note also, that such a
@@ -501,7 +501,7 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
gnutls_fips140_set_mode(GNUTLS_FIPS140_LAX, 0);
Service indicator
-@@ -4750,8 +4750,8 @@ There are certifications from national o
+@@ -4746,8 +4746,8 @@ There are certifications from national o
practices, such as unit testing and reliance on well known crypto
primitives.
@@ -512,7 +512,7 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
File: gnutls.info, Node: Error codes, Next: Supported ciphersuites, Prev: Support, Up: Top
-@@ -9236,7 +9236,7 @@ gnutls_fips140_set_mode
+@@ -9267,7 +9267,7 @@ gnutls_fips140_set_mode
-- Function: void gnutls_fips140_set_mode (gnutls_fips_mode_t MODE,
unsigned FLAGS)
@@ -521,10 +521,10 @@ Index: gnutls-3.8.10/doc/gnutls.info-3
FLAGS: should be zero or ‘GNUTLS_FIPS140_SET_MODE_THREAD’
-Index: gnutls-3.8.10/doc/invoke-gnutls-cli.texi
+Index: gnutls-3.8.11/doc/invoke-gnutls-cli.texi
===================================================================
---- gnutls-3.8.10.orig/doc/invoke-gnutls-cli.texi
-+++ gnutls-3.8.10/doc/invoke-gnutls-cli.texi
+--- gnutls-3.8.11.orig/doc/invoke-gnutls-cli.texi
++++ gnutls-3.8.11/doc/invoke-gnutls-cli.texi
@@ -102,7 +102,7 @@ None:
--inline-commands-prefix=str Change the default delimiter for inline commands
--provider=file Specify the PKCS #11 provider library
@@ -534,10 +534,10 @@ Index: gnutls-3.8.10/doc/invoke-gnutls-cli.texi
--list-config Reports the configuration of the library
--logfile=str Redirect informational messages to a specific file
--keymatexport=str Label used for exporting keying material
-Index: gnutls-3.8.10/doc/manpages/gnutls-cli.1
+Index: gnutls-3.8.11/doc/manpages/gnutls-cli.1
===================================================================
---- gnutls-3.8.10.orig/doc/manpages/gnutls-cli.1
-+++ gnutls-3.8.10/doc/manpages/gnutls-cli.1
+--- gnutls-3.8.11.orig/doc/manpages/gnutls-cli.1
++++ gnutls-3.8.11/doc/manpages/gnutls-cli.1
@@ -398,7 +398,7 @@ Specify the PKCS #11 provider library.
This will override the default options in /etc/gnutls/pkcs11.conf
.TP
@@ -547,11 +547,11 @@ Index: gnutls-3.8.10/doc/manpages/gnutls-cli.1
.sp
.TP
.NOP \f\*[B-Font]\-\-list\-config\f[]
-Index: gnutls-3.8.10/doc/reference/html/gnutls-gnutls.html
+Index: gnutls-3.8.11/doc/reference/html/gnutls-gnutls.html
===================================================================
---- gnutls-3.8.10.orig/doc/reference/html/gnutls-gnutls.html
-+++ gnutls-3.8.10/doc/reference/html/gnutls-gnutls.html
-@@ -20874,12 +20874,12 @@ gnutls_fips140_set_mode (
When the flag GNUTLS_FIPS140_SET_MODE_THREAD is specified
@@ -566,7 +566,7 @@ Index: gnutls-3.8.10/doc/reference/html/gnutls-gnutls.html
values for mode
or to GNUTLS_FIPS140_SELFTESTS mode, the library
switches to GNUTLS_FIPS140_STRICT mode.
-@@ -20894,7 +20894,7 @@ switches to mode
@@ -575,7 +575,7 @@ Index: gnutls-3.8.10/doc/reference/html/gnutls-gnutls.html
|
-@@ -26035,7 +26035,7 @@ encryption
+@@ -26311,7 +26311,7 @@ encryption
enum gnutls_fips_mode_t
@@ -584,7 +584,7 @@ Index: gnutls-3.8.10/doc/reference/html/gnutls-gnutls.html