CK_RV loadModule(Module *module, char *library) {
loadModule(Module *module, char *library) {
CK_RV loadModule(Module *module, char *library) {   PRLibrary *newLibrary;   CK_C_GetFunctionList getFunctionList;   CK_FUNCTION_LIST *functionList;   CK_RV ckrv;   newLibrary = PR_LoadLibrary(library);   if (!newLibrary) {	fprintf(stderr,"Couldn't load library %s\n",library);	return CKR_FUNCTION_FAILED;   }   getFunctionList = (CK_C_GetFunctionList) 			PR_FindSymbol(newLibrary,"C_GetFunctionList");   if (!getFunctionList) {	fprintf(stderr,"Couldn't find \"C_GetFunctionList\" in %s\n",library);	return CKR_FUNCTION_FAILED;   }   ckrv = (*getFunctionList)(&functionList);   if (ckrv != CKR_OK) {	return ckrv;   }      if (module->library) {	PR_UnloadLibrary(module->library);   }   module->library = newLibrary;   module->functionList = functionList;   return CKR_OK;}