473 const TDes* text = 0; |
473 const TDes* text = 0; |
474 int ind = 0; |
474 int ind = 0; |
475 |
475 |
476 for (ind = 0; ind < certEntries->Count(); ind++) { |
476 for (ind = 0; ind < certEntries->Count(); ind++) { |
477 |
477 |
|
478 EapCertificateEntry* certPtr = (*certEntries)[ind]; |
|
479 |
478 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo *** certificate starts *** "; |
480 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo *** certificate starts *** "; |
479 |
481 |
480 if ((*certEntries)[ind]->GetSubjectNamePresent() != EFalse) { |
482 if (certPtr->GetSubjectNamePresent() != EFalse) { |
481 |
483 |
482 text = (*certEntries)[ind]->GetSubjectName(); |
484 text = certPtr->GetSubjectName(); |
483 cert.setValue(EapQtCertificateInfo::SubjectName, QString::fromUtf16(text->Ptr(), |
485 cert.setValue(EapQtCertificateInfo::SubjectName, QString::fromUtf16(text->Ptr(), |
484 text->Length())); |
486 text->Length())); |
485 |
487 |
486 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo SubjectName: " |
488 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo SubjectName: " |
487 << QString::fromUtf16(text->Ptr(), text->Length()); |
489 << QString::fromUtf16(text->Ptr(), text->Length()); |
488 } |
490 } |
489 if ((*certEntries)[ind]->GetIssuerNamePresent() != EFalse) { |
491 if (certPtr->GetIssuerNamePresent() != EFalse) { |
490 |
492 |
491 text = (*certEntries)[ind]->GetIssuerName(); |
493 text = certPtr->GetIssuerName(); |
492 cert.setValue(EapQtCertificateInfo::IssuerName, QString::fromUtf16(text->Ptr(), |
494 cert.setValue(EapQtCertificateInfo::IssuerName, QString::fromUtf16(text->Ptr(), |
493 text->Length())); |
495 text->Length())); |
494 |
496 |
495 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo IssuerName: " |
497 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo IssuerName: " |
496 << QString::fromUtf16(text->Ptr(), text->Length()); |
498 << QString::fromUtf16(text->Ptr(), text->Length()); |
497 } |
499 } |
498 if ((*certEntries)[ind]->GetSerialNumberPresent() != EFalse) { |
500 if (certPtr->GetSerialNumberPresent() != EFalse) { |
499 |
501 |
500 text = (*certEntries)[ind]->GetSerialNumber(); |
502 text = certPtr->GetSerialNumber(); |
501 cert.setValue(EapQtCertificateInfo::SerialNumber, QString::fromUtf16(text->Ptr(), |
503 cert.setValue(EapQtCertificateInfo::SerialNumber, QString::fromUtf16(text->Ptr(), |
502 text->Length())); |
504 text->Length())); |
503 |
505 |
504 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo SerialNumber: " |
506 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo SerialNumber: " |
505 << QString::fromUtf16(text->Ptr(), text->Length()); |
507 << QString::fromUtf16(text->Ptr(), text->Length()); |
506 } |
508 } |
507 if ((*certEntries)[ind]->GetSubjectKeyIdPresent() != EFalse) { |
509 if (certPtr->GetSubjectKeyIdPresent() != EFalse) { |
508 |
510 |
509 subjectKeyId = (*certEntries)[ind]->GetSubjectKeyId(); |
511 subjectKeyId = certPtr->GetSubjectKeyId(); |
510 cert.setValue(EapQtCertificateInfo::SubjectKeyId, QByteArray( |
512 cert.setValue(EapQtCertificateInfo::SubjectKeyId, QByteArray( |
511 reinterpret_cast<const char*> (subjectKeyId.Ptr()), subjectKeyId.Length())); |
513 reinterpret_cast<const char*> (subjectKeyId.Ptr()), subjectKeyId.Length())); |
512 |
514 |
513 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo SubjectKeyId: " |
515 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo SubjectKeyId: " |
514 << (QByteArray(reinterpret_cast<const char*> (subjectKeyId.Ptr()), |
516 << (QByteArray(reinterpret_cast<const char*> (subjectKeyId.Ptr()), |
515 subjectKeyId.Length())).toHex(); |
517 subjectKeyId.Length())).toHex(); |
516 } |
518 } |
517 if ((*certEntries)[ind]->GetThumbprintPresent() != EFalse) { |
519 if (certPtr->GetThumbprintPresent() != EFalse) { |
518 |
520 |
519 text = (*certEntries)[ind]->GetThumbprint(); |
521 text = certPtr->GetThumbprint(); |
520 cert.setValue(EapQtCertificateInfo::ThumbPrint, QString::fromUtf16(text->Ptr(), |
522 cert.setValue(EapQtCertificateInfo::ThumbPrint, QString::fromUtf16(text->Ptr(), |
521 text->Length())); |
523 text->Length())); |
522 |
524 |
523 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo ThumbPrint: " |
525 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo ThumbPrint: " |
524 << QString::fromUtf16(text->Ptr(), text->Length()); |
526 << QString::fromUtf16(text->Ptr(), text->Length()); |
525 } |
527 } |
526 if ((*certEntries)[ind]->GetLabelPresent() != EFalse) { |
528 if (certPtr->GetLabelPresent() != EFalse) { |
527 |
529 |
528 text = (*certEntries)[ind]->GetLabel(); |
530 text = certPtr->GetLabel(); |
529 cert.setValue(EapQtCertificateInfo::CertificateLabel, QString::fromUtf16(text->Ptr(), |
531 cert.setValue(EapQtCertificateInfo::CertificateLabel, QString::fromUtf16(text->Ptr(), |
530 text->Length())); |
532 text->Length())); |
531 |
533 |
532 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo CertificateLabel: " |
534 qDebug() << "EapQtConfigInterfacePrivate - copyCertificateInfo CertificateLabel: " |
533 << QString::fromUtf16(text->Ptr(), text->Length()); |
535 << QString::fromUtf16(text->Ptr(), text->Length()); |