Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
certs fix for sample - added file filter
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgav committed Jun 30, 2015
1 parent 469d831 commit 7a1230d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/rms_sample/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ void MainWindow::on_certificatesPathButton_clicked()
void MainWindow::addCertificates() {
auto dirStr = ui->ineEdit_certificatesPath->text();
QDir dir(dirStr);
auto filesList = dir.entryInfoList();
QStringList filters;
filters << "*.cer" << "*.der" << "*.pem";
auto filesList = dir.entryInfoList(filters);
std::vector<uint8_t> buffer;

for (auto& fileName : filesList) {
Expand Down

0 comments on commit 7a1230d

Please sign in to comment.