}  if (rv == SECSuccess) { *pRetCert = CERT_DupCertificate(sock->clientCert); *pRetKey  = privkey;
JSSL_GetClientAuthData( void * arg,                        PRFileDesc *        fd,                        CERTDistNames *     caNames,                        CERTCertificate **  pRetCert,                        SECKEYPrivateKey ** pRetKey){    SECKEYPrivateKey * privkey;    JSSL_SocketData *  sock;    SECStatus          rv         = SECFailure;    PR_ASSERT(arg != NULL);    sock = (JSSL_SocketData*) arg;    if (sock->clientCert) {        privkey = PK11_FindKeyByAnyCert(sock->clientCert, NULL /*pinarg*/);        if ( privkey ) {            rv = SECSuccess;        }    }        if (rv == SECSuccess) {        *pRetCert = CERT_DupCertificate(sock->clientCert);         *pRetKey  = privkey;    }        return rv;}