CERTCertificate *SSL_PeerCertificate(PRFileDesc *fd)
SSL_PeerCertificate(PRFileDesc *fd)
CERTCertificate *SSL_PeerCertificate(PRFileDesc *fd){    sslSocket *ss;    sslSecurityInfo *sec;    ss = ssl_FindSocket(fd);    if (!ss) {	SSL_DBG(("%d: SSL[%d]: bad socket in PeerCertificate",		 SSL_GETPID(), fd));	return 0;    }    sec = ss->sec;    if (ss->useSecurity && sec && sec->peerCert) {	return CERT_DupCertificate(sec->peerCert);    }    return 0;}