Lines Matching refs:m_pCert
64 m_pCert( NULL ) in X509Certificate_NssImpl()
69 if( m_pCert != NULL ) { in ~X509Certificate_NssImpl()
70 CERT_DestroyCertificate( m_pCert ) ; in ~X509Certificate_NssImpl()
76 if( m_pCert != NULL ) { in getVersion()
77 if( m_pCert->version.len > 0 ) { in getVersion()
78 return ( char )*( m_pCert->version.data ) ; in getVersion()
87 if( m_pCert != NULL && m_pCert->serialNumber.len > 0 ) { in getSerialNumber()
88 Sequence< sal_Int8 > serial( m_pCert->serialNumber.len ) ; in getSerialNumber()
89 for( unsigned int i = 0 ; i < m_pCert->serialNumber.len ; i ++ ) in getSerialNumber()
90 serial[i] = *( m_pCert->serialNumber.data + i ) ; in getSerialNumber()
99 if( m_pCert != NULL ) { in getIssuerName()
100 return OUString(m_pCert->issuerName , PL_strlen(m_pCert->issuerName) , RTL_TEXTENCODING_UTF8) ; in getIssuerName()
107 if( m_pCert != NULL ) { in getSubjectName()
108 return OUString(m_pCert->subjectName , PL_strlen(m_pCert->subjectName) , RTL_TEXTENCODING_UTF8); in getSubjectName()
115 if( m_pCert != NULL ) { in getNotValidBefore()
121 rv = DER_DecodeTimeChoice( ¬Before, &m_pCert->validity.notBefore ) ; in getNotValidBefore()
144 if( m_pCert != NULL ) { in getNotValidAfter()
150 rv = DER_DecodeTimeChoice( ¬After, &m_pCert->validity.notAfter ) ; in getNotValidAfter()
173 if( m_pCert != NULL && m_pCert->issuerID.len > 0 ) { in getIssuerUniqueID()
174 Sequence< sal_Int8 > issuerUid( m_pCert->issuerID.len ) ; in getIssuerUniqueID()
175 for( unsigned int i = 0 ; i < m_pCert->issuerID.len ; i ++ ) in getIssuerUniqueID()
176 issuerUid[i] = *( m_pCert->issuerID.data + i ) ; in getIssuerUniqueID()
185 if( m_pCert != NULL && m_pCert->subjectID.len > 0 ) { in getSubjectUniqueID()
186 Sequence< sal_Int8 > subjectUid( m_pCert->subjectID.len ) ; in getSubjectUniqueID()
187 for( unsigned int i = 0 ; i < m_pCert->subjectID.len ; i ++ ) in getSubjectUniqueID()
188 subjectUid[i] = *( m_pCert->subjectID.data + i ) ; in getSubjectUniqueID()
197 if( m_pCert != NULL && m_pCert->extensions != NULL ) { in getExtensions()
203 for( len = 0, extns = m_pCert->extensions; *extns != NULL; len ++, extns ++ ) ; in getExtensions()
206 for( extns = m_pCert->extensions, len = 0; *extns != NULL; extns ++, len ++ ) { in getExtensions()
239 if( m_pCert != NULL && m_pCert->extensions != NULL ) { in findCertificateExtension()
249 for( extns = m_pCert->extensions; *extns != NULL; extns ++ ) { in findCertificateExtension()
273 if( m_pCert != NULL && m_pCert->derCert.len > 0 ) { in getEncoded()
274 Sequence< sal_Int8 > rawCert( m_pCert->derCert.len ) ; in getEncoded()
276 for( unsigned int i = 0 ; i < m_pCert->derCert.len ; i ++ ) in getEncoded()
277 rawCert[i] = *( m_pCert->derCert.data + i ) ; in getEncoded()
287 if( m_pCert != NULL ) { in setCert()
288 CERT_DestroyCertificate( m_pCert ) ; in setCert()
289 m_pCert = NULL ; in setCert()
293 m_pCert = CERT_DupCertificate( cert ) ; in setCert()
298 if( m_pCert != NULL ) { in getNssCert()
299 return m_pCert ; in getNssCert()
316 if( m_pCert != NULL ) { in setRawCert()
317 CERT_DestroyCertificate( m_pCert ) ; in setRawCert()
318 m_pCert = NULL ; in setRawCert()
321 m_pCert = cert ; in setRawCert()
400 if( m_pCert != NULL ) in getSubjectPublicKeyAlgorithm()
402 return getAlgorithmDescription(&(m_pCert->subjectPublicKeyInfo.algorithm)); in getSubjectPublicKeyAlgorithm()
413 if( m_pCert != NULL ) in getSubjectPublicKeyValue()
415 SECItem spk = m_pCert->subjectPublicKeyInfo.subjectPublicKey; in getSubjectPublicKeyValue()
436 if( m_pCert != NULL ) in getSignatureAlgorithm()
438 return getAlgorithmDescription(&(m_pCert->signature)); in getSignatureAlgorithm()
449 return getThumbprint(m_pCert, SEC_OID_SHA1); in getSHA1Thumbprint()
455 return getThumbprint(m_pCert, SEC_OID_MD5); in getMD5Thumbprint()
465 rv = CERT_FindKeyUsageExtension(m_pCert, &tmpitem); in getCertificateUsage()