Lines Matching refs:m_pCertContext
179 m_pCertContext( NULL ) in X509Certificate_MSCryptImpl()
184 if( m_pCertContext != NULL ) { in ~X509Certificate_MSCryptImpl()
185 CertFreeCertificateContext( m_pCertContext ) ; in ~X509Certificate_MSCryptImpl()
191 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getVersion()
192 return ( char )m_pCertContext->pCertInfo->dwVersion ; in getVersion()
199 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getSerialNumber()
200 Sequence< sal_Int8 > serial( m_pCertContext->pCertInfo->SerialNumber.cbData ) ; in getSerialNumber()
201 for( unsigned int i = 0 ; i < m_pCertContext->pCertInfo->SerialNumber.cbData ; i ++ ) in getSerialNumber()
202 …serial[i] = *( m_pCertContext->pCertInfo->SerialNumber.pbData + m_pCertContext->pCertInfo->SerialN… in getSerialNumber()
211 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getIssuerName()
217 &( m_pCertContext->pCertInfo->Issuer ), in getIssuerName()
230 &( m_pCertContext->pCertInfo->Issuer ), in getIssuerName()
262 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) in getSubjectName()
269 &( m_pCertContext->pCertInfo->Subject ), in getSubjectName()
282 &( m_pCertContext->pCertInfo->Subject ), in getSubjectName()
308 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getNotValidBefore()
313 if (FileTimeToLocalFileTime(&( m_pCertContext->pCertInfo->NotBefore ), &localFileTime)) in getNotValidBefore()
334 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getNotValidAfter()
339 if (FileTimeToLocalFileTime(&( m_pCertContext->pCertInfo->NotAfter ), &localFileTime)) in getNotValidAfter()
360 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getIssuerUniqueID()
361 Sequence< sal_Int8 > issuerUid( m_pCertContext->pCertInfo->IssuerUniqueId.cbData ) ; in getIssuerUniqueID()
362 for( unsigned int i = 0 ; i < m_pCertContext->pCertInfo->IssuerUniqueId.cbData; i ++ ) in getIssuerUniqueID()
363 issuerUid[i] = *( m_pCertContext->pCertInfo->IssuerUniqueId.pbData + i ) ; in getIssuerUniqueID()
372 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) { in getSubjectUniqueID()
373 Sequence< sal_Int8 > subjectUid( m_pCertContext->pCertInfo->SubjectUniqueId.cbData ) ; in getSubjectUniqueID()
374 for( unsigned int i = 0 ; i < m_pCertContext->pCertInfo->SubjectUniqueId.cbData; i ++ ) in getSubjectUniqueID()
375 subjectUid[i] = *( m_pCertContext->pCertInfo->SubjectUniqueId.pbData + i ) ; in getSubjectUniqueID()
384 …if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL && m_pCertContext->pCertInfo->cExt… in getExtensions()
387 Sequence< Reference< XCertificateExtension > > xExtns( m_pCertContext->pCertInfo->cExtension ) ; in getExtensions()
389 for( unsigned int i = 0; i < m_pCertContext->pCertInfo->cExtension; i++ ) { in getExtensions()
390 pExtn = &(m_pCertContext->pCertInfo->rgExtension[i]) ; in getExtensions()
414 …if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL && m_pCertContext->pCertInfo->cExt… in findCertificateExtension()
417 Sequence< Reference< XCertificateExtension > > xExtns( m_pCertContext->pCertInfo->cExtension ) ; in findCertificateExtension()
420 for( unsigned int i = 0; i < m_pCertContext->pCertInfo->cExtension; i++ ) { in findCertificateExtension()
421 pExtn = &( m_pCertContext->pCertInfo->rgExtension[i] ) ; in findCertificateExtension()
441 if( m_pCertContext != NULL && m_pCertContext->cbCertEncoded > 0 ) { in getEncoded()
442 Sequence< sal_Int8 > rawCert( m_pCertContext->cbCertEncoded ) ; in getEncoded()
444 for( unsigned int i = 0 ; i < m_pCertContext->cbCertEncoded ; i ++ ) in getEncoded()
445 rawCert[i] = *( m_pCertContext->pbCertEncoded + i ) ; in getEncoded()
455 if( m_pCertContext != NULL ) { in setMswcryCert()
456 CertFreeCertificateContext( m_pCertContext ) ; in setMswcryCert()
457 m_pCertContext = NULL ; in setMswcryCert()
461 m_pCertContext = CertDuplicateCertificateContext( cert ) ; in setMswcryCert()
466 if( m_pCertContext != NULL ) { in getMswcryCert()
467 return m_pCertContext ; in getMswcryCert()
474 if( m_pCertContext != NULL ) { in setRawCert()
475 CertFreeCertificateContext( m_pCertContext ) ; in setRawCert()
476 m_pCertContext = NULL ; in setRawCert()
480 …m_pCertContext = CertCreateCertificateContext( X509_ASN_ENCODING, ( const sal_uInt8* )&rawCert[0],… in setRawCert()
560 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) in getSubjectPublicKeyAlgorithm()
562 CRYPT_ALGORITHM_IDENTIFIER algorithm = m_pCertContext->pCertInfo->SubjectPublicKeyInfo.Algorithm; in getSubjectPublicKeyAlgorithm()
574 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) in getSubjectPublicKeyValue()
576 CRYPT_BIT_BLOB publicKey = m_pCertContext->pCertInfo->SubjectPublicKeyInfo.PublicKey; in getSubjectPublicKeyValue()
595 if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL ) in getSignatureAlgorithm()
597 CRYPT_ALGORITHM_IDENTIFIER algorithm = m_pCertContext->pCertInfo->SignatureAlgorithm; in getSignatureAlgorithm()
609 return getThumbprint(m_pCertContext, CERT_SHA1_HASH_PROP_ID); in getSHA1Thumbprint()
615 return getThumbprint(m_pCertContext, CERT_MD5_HASH_PROP_ID); in getMD5Thumbprint()
630 …if( m_pCertContext != NULL && m_pCertContext->pCertInfo != NULL && m_pCertContext->pCertInfo->cExt… in getCertificateUsage()
634 m_pCertContext->pCertInfo->cExtension, in getCertificateUsage()
635 m_pCertContext->pCertInfo->rgExtension); in getCertificateUsage()