PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("[%p] Shutting down socket\n", (void*)fd));
nsSSLIOLayerClose(PRFileDesc *fd){  if (!fd)    return PR_FAILURE;#ifdef DEBUG_SSL  printf("NSS: [%p] Shutting down socket\n", (void*)fd);#endif    PRFileDesc* popped = PR_PopIOLayer(fd, PR_TOP_IO_LAYER);  PRStatus status = fd->methods->close(fd);  if (status != PR_SUCCESS) return status;    popped->identity = PR_INVALID_IO_LAYER;  nsNSSSocketInfo *infoObject = (nsNSSSocketInfo*) popped->secret;  NS_RELEASE(infoObject);    return status;}