Print this page
4215 pkcs11_tpm botches shared library initialization, murders its friends

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/pkcs11/pkcs11_tpm/common/api_interface.c
          +++ new/usr/src/lib/pkcs11/pkcs11_tpm/common/api_interface.c
↓ open down ↓ 1233 lines elided ↑ open up ↑
1234 1234                      pTemplate, ulCount);
1235 1235          } else {
1236 1236                  rv = CKR_FUNCTION_NOT_SUPPORTED;
1237 1237          }
1238 1238          return (rv);
1239 1239  }
1240 1240  
1241 1241  CK_RV
1242 1242  C_GetFunctionList(CK_FUNCTION_LIST_PTR_PTR ppFunctionList)
1243 1243  {
1244      -        _init();
1245      -
1246 1244          PK11_Functions.version.major = VERSION_MAJOR;
1247 1245          PK11_Functions.version.minor = VERSION_MINOR;
1248 1246          PK11_Functions.C_Initialize = C_Initialize;
1249 1247          PK11_Functions.C_Finalize = C_Finalize;
1250 1248          PK11_Functions.C_GetInfo = C_GetInfo;
1251 1249          PK11_Functions.C_GetFunctionList = C_GetFunctionList;
1252 1250          PK11_Functions.C_GetSlotList = C_GetSlotList;
1253 1251          PK11_Functions.C_GetSlotInfo = C_GetSlotInfo;
1254 1252          PK11_Functions.C_GetTokenInfo = C_GetTokenInfo;
1255 1253          PK11_Functions.C_GetMechanismList = C_GetMechanismList;
↓ open down ↓ 1079 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX