1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/libreswan/nss_compat.patch
Will Sinatra 232dbdf0f5 community/libreswan: fix assertion failure
Fix assertion failure in nss IKE encryption handling; fixes issue #11656
2020-09-23 21:41:06 +00:00

13 lines
449 B
Diff

#2020/9/23 Patch is upstream, but not officially released. Should be released in libreswan 3.33+
#Description: Force NSS compatibility to allow libreswan to properly autonegotiate IKE encryption
--- a/lib/libswan/ike_alg_encrypt_nss_gcm_ops.c
+++ b/lib/libswan/ike_alg_encrypt_nss_gcm_ops.c
@@ -16,6 +16,8 @@
#include <stdio.h>
#include <stdlib.h>
+#define NSS_PKCS11_2_0_COMPAT 1
+
#include "lswlog.h"
#include "lswnss.h"
#include "prmem.h"