Blame SOURCES/nss-softokn-tls-abi-fix.patch

d38264
diff -up ./nss/lib/softoken/pkcs11c.c.tls_abi_fix ./nss/lib/softoken/pkcs11c.c
d38264
--- ./nss/lib/softoken/pkcs11c.c.tls_abi_fix	2017-03-23 14:44:59.059880273 -0700
d38264
+++ ./nss/lib/softoken/pkcs11c.c	2017-03-23 14:45:24.738316707 -0700
d38264
@@ -2672,6 +2672,7 @@ NSC_SignInit(CK_SESSION_HANDLE hSession,
d38264
         case CKM_TLS_PRF_GENERAL:
d38264
             crv = sftk_TLSPRFInit(context, key, key_type, HASH_AlgNULL, 0);
d38264
             break;
d38264
+        case CKM_TLS_KDF:
d38264
         case CKM_TLS_MAC: {
d38264
             CK_TLS_MAC_PARAMS *tls12_mac_params;
d38264
             HASH_HashType tlsPrfHash;
d38264
diff -up ./nss/lib/softoken/pkcs11.c.tls_abi_fix ./nss/lib/softoken/pkcs11.c
d38264
--- ./nss/lib/softoken/pkcs11.c.tls_abi_fix	2017-03-23 14:42:21.055194120 -0700
d38264
+++ ./nss/lib/softoken/pkcs11.c	2017-03-23 14:44:44.321629780 -0700
d38264
@@ -373,6 +373,11 @@ static const struct mechanismList mechan
d38264
     { CKM_SHA512_HMAC_GENERAL, { 1, 128, CKF_SN_VR }, PR_TRUE },
d38264
     { CKM_TLS_PRF_GENERAL, { 0, 512, CKF_SN_VR }, PR_FALSE },
d38264
     { CKM_TLS_MAC, { 0, 512, CKF_SN_VR }, PR_FALSE },
d38264
+    { CKM_TLS_KDF, { 0, 512, CKF_SN_VR }, PR_FALSE }, /* in RHEL 7.3 we had the wrong 
d38264
+						       * number for TLS_MAC. keep the old
d38264
+						       * number to allow old versions of 
d38264
+						       * nss on * RHEL 7 to work with 
d38264
+						       * this softoken */
d38264
     { CKM_NSS_TLS_PRF_GENERAL_SHA256,
d38264
       { 0, 512, CKF_SN_VR },
d38264
       PR_FALSE },