comparison ui/certificate.cpp @ 380:1220b741cd51

Add some more fields for a certificate
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 15 Apr 2014 12:45:20 +0200
parents 2ddc685cba33
children 7a15a3066f7b
comparison
equal deleted inserted replaced
379:2ddc685cba33 380:1220b741cd51
44 QTime(chain.valid_to.hour, 44 QTime(chain.valid_to.hour,
45 chain.valid_to.min, 45 chain.valid_to.min,
46 chain.valid_to.sec)); 46 chain.valid_to.sec));
47 47
48 mSubjectCN = getX509Value(&(chain.subject), CERT_OID_CN); 48 mSubjectCN = getX509Value(&(chain.subject), CERT_OID_CN);
49 mIssuerCN = getX509Value(&(chain.issuer), CERT_OID_CN);
49 mSubjectOU = getX509Value(&(chain.subject), CERT_OID_OU); 50 mSubjectOU = getX509Value(&(chain.subject), CERT_OID_OU);
50 mSubjectO = getX509Value(&(chain.subject), CERT_OID_O); 51 mSubjectO = getX509Value(&(chain.subject), CERT_OID_O);
52 mIssuerO = getX509Value(&(chain.issuer), CERT_OID_O);
51 mSubjectSN = getX509Value(&(chain.subject), CERT_OID_SN); 53 mSubjectSN = getX509Value(&(chain.subject), CERT_OID_SN);
52 54
53 /* Calculate sha1 fingerprint */ 55 /* Calculate sha1 fingerprint */
54 unsigned char sha1sum[20]; 56 unsigned char sha1sum[20];
55 sha1(chain.raw.p, chain.raw.len, sha1sum); 57 sha1(chain.raw.p, chain.raw.len, sha1sum);

http://wald.intevation.org/projects/trustbridge/