rv = nsServiceManager::GetService(nsCrypto::kPSMComponentProgID, NS_GET_IID(nsIPSMComponent), &psm);
rv = nsPSMComponent::CreatePSMComponent(nsnull, NS_GET_IID(nsIPSMComponent), (void**)&psm);
getPSMComponent(nsIPSMComponent ** retPSM){  nsresult rv;  nsISupports *psm;    rv = nsServiceManager::GetService(nsCrypto::kPSMComponentProgID, 				    NS_GET_IID(nsIPSMComponent), &psm);  if (rv == NS_OK)     *retPSM = (nsIPSMComponent *)psm;    return rv;}