Changeset 176
- Timestamp:
- 03/08/10 11:37:04 (6 months ago)
- Location:
- trunk
- Files:
-
- 1 modified
- 20 moved
-
src/Main.cxx (moved) (moved from trunk/src/main.cpp) (2 diffs)
-
src/NewPasswordDialog.cxx (moved) (moved from trunk/src/NewPasswordDialog.cpp) (2 diffs)
-
src/NewPasswordDialog.hxx (moved) (moved from trunk/src/NewPasswordDialog.h) (1 diff)
-
src/PasswordDialog.cxx (moved) (moved from trunk/src/PasswordDialog.cpp) (2 diffs)
-
src/PasswordDialog.hxx (moved) (moved from trunk/src/PasswordDialog.h) (1 diff)
-
src/PublicKeyView.cxx (moved) (moved from trunk/src/PublicKeyView.cpp) (2 diffs)
-
src/PublicKeyView.hxx (moved) (moved from trunk/src/PublicKeyView.h) (1 diff)
-
src/SetSRKView.cxx (moved) (moved from trunk/src/SetSRKView.cpp) (1 diff)
-
src/SetSRKView.hxx (moved) (moved from trunk/src/SetSRKView.h) (1 diff)
-
src/TPMManager.cxx (moved) (moved from trunk/src/tpmmanager.cpp) (16 diffs)
-
src/TPMManager.hxx (moved) (moved from trunk/src/tpmmanager.h) (1 diff)
-
src/microtss/PublicKey.cxx (moved) (moved from trunk/src/microtss/PublicKey.cpp) (2 diffs)
-
src/microtss/PublicKey.hxx (moved) (moved from trunk/src/microtss/PublicKey.h) (1 diff)
-
src/microtss/TPM.cxx (moved) (moved from trunk/src/microtss/TPM.cpp) (2 diffs)
-
src/microtss/TPM.hxx (moved) (moved from trunk/src/microtss/TPM.h) (2 diffs)
-
src/microtss/TSS.cxx (moved) (moved from trunk/src/microtss/TSS.cpp) (2 diffs)
-
src/microtss/TSS.hxx (moved) (moved from trunk/src/microtss/TSS.h) (1 diff)
-
tpmmanager.pro (modified) (2 diffs)
-
ui/PublicKeyView.ui (moved) (moved from trunk/ui/publickeyview.ui)
-
ui/SetSRKDialog.ui (moved) (moved from trunk/ui/setsrkdialog.ui)
-
ui/TPMManagerBase.ui (moved) (moved from trunk/ui/tpmmanagerbase.ui)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Main.cxx
r160 r176 37 37 38 38 /** 39 * @file main.cpp39 * @file Main.cxx 40 40 * 41 41 * @brief TPM Manager Main Application File … … 44 44 45 45 #include <QApplication> 46 #include " tpmmanager.h"46 #include "TPMManager.hxx" 47 47 #include <string.h> 48 48 /// Main application loop -
trunk/src/NewPasswordDialog.cxx
r102 r176 22 22 23 23 /** 24 * @file NewPasswordDialog.c pp24 * @file NewPasswordDialog.cxx 25 25 * 26 26 * @brief New Password Dialog Class Implementation File … … 28 28 **/ 29 29 30 #include "NewPasswordDialog.h "30 #include "NewPasswordDialog.hxx" 31 31 32 32 NewPasswordDialog::NewPasswordDialog( QWidget * parent, Qt::WFlags f) -
trunk/src/NewPasswordDialog.hxx
r102 r176 28 28 29 29 /** 30 * @file NewPasswordDialog.h 30 * @file NewPasswordDialog.hxx 31 31 * 32 32 * @brief New Password Dialog Class Header File -
trunk/src/PasswordDialog.cxx
r102 r176 22 22 23 23 /** 24 * @file PasswordDialog.c pp24 * @file PasswordDialog.cxx 25 25 * 26 26 * @brief Password Dialog Class Implementation File … … 28 28 **/ 29 29 30 #include "PasswordDialog.h "30 #include "PasswordDialog.hxx" 31 31 #include <iostream> 32 32 -
trunk/src/PasswordDialog.hxx
r102 r176 28 28 29 29 /** 30 * @file PasswordDialog.h 30 * @file PasswordDialog.hxx 31 31 * 32 32 * @brief Password Dialog Class Header File -
trunk/src/PublicKeyView.cxx
r102 r176 22 22 23 23 /** 24 * @file PublicKeyView.c pp24 * @file PublicKeyView.cxx 25 25 * 26 26 * @brief Public Key Dialog Class Implementation File … … 28 28 **/ 29 29 30 #include "PublicKeyView.h "30 #include "PublicKeyView.hxx" 31 31 #include <QLabel> 32 32 #include <QString> -
trunk/src/PublicKeyView.hxx
r102 r176 25 25 // 26 26 #include <QDialog> 27 #include "ui_ publickeyview.h"28 #include <microtss/PublicKey.h >27 #include "ui_PublicKeyView.h" 28 #include <microtss/PublicKey.hxx> 29 29 30 30 /** 31 * @file PublicKeyView.h 31 * @file PublicKeyView.hxx 32 32 * 33 33 * @brief Public Key Dialog Class Header File -
trunk/src/SetSRKView.cxx
r173 r176 28 28 **/ 29 29 30 #include "SetSRKView.h "30 #include "SetSRKView.hxx" 31 31 #include <iostream> 32 32 #include <QString> -
trunk/src/SetSRKView.hxx
r102 r176 25 25 // 26 26 #include <QDialog> 27 #include "ui_ setsrkdialog.h"27 #include "ui_SetSRKDialog.h" 28 28 #include <QRadioButton> 29 29 30 30 /** 31 * @file SetSRKView.h 31 * @file SetSRKView.hxx 32 32 * 33 33 * @brief SRK Password Choose Dialog Class Header File -
trunk/src/TPMManager.cxx
r175 r176 22 22 23 23 /** 24 * @file tpmmanager.cpp24 * @file TPMManager.cxx 25 25 * 26 26 * @brief TPM Manager Controller Class Implementation File … … 28 28 **/ 29 29 30 #include <microtss/TSS.h>31 #include <SetSRKView.h>32 30 #include <iostream> 33 31 #include <sstream> … … 52 50 #include <QUrl> 53 51 // 54 #include <microtss/PublicKey.h> 55 #include <PublicKeyView.h> 56 #include <PasswordDialog.h> 57 #include <NewPasswordDialog.h> 58 59 #include "tpmmanager.h" 52 #include <microtss/TSS.hxx> 53 #include <microtss/PublicKey.hxx> 54 #include <SetSRKView.hxx> 55 #include <PublicKeyView.hxx> 56 #include <PasswordDialog.hxx> 57 #include <NewPasswordDialog.hxx> 58 59 #include "TPMManager.hxx" 60 60 61 61 #define VERSION "0.8.1" … … 113 113 QMessageBox::critical( this, "No TSS Found", "A TCG Software Stack (TSS) could not be found. When using TrouSerS, make sure the TrouSerS daemon (tcsd) is running.\nTPM Manager will quit." ); 114 114 exit(1); 115 } catch ( ... ) { 116 QMessageBox::critical( this, "Unknown Error", "An unknown error occured during initialization." ); 115 117 } 116 118 … … 467 469 468 470 } catch ( IsDeactivatedError &e ) { 469 QMessageBox::critical( this, " Error: Taking Ownership" , "Sorry. Could not Take Ownership in deactivated mode due to TSS bug. " );471 QMessageBox::critical( this, "Taking Ownership Failed" , "Sorry. Could not Take Ownership in deactivated mode due to TSS bug. " ); 470 472 } catch ( UnknownError &e ) { 471 QMessageBox::critical( this, "Error: Taking Ownership" , QString( "Could not Take Ownership for the following reason: " ).append( QString::fromStdString( e.what() ) ) ); 473 QMessageBox::critical( this, "Taking Ownership Failed" , QString( "Could not Take Ownership for the following reason: " ).append( QString::fromStdString( e.what() ) ) ); 474 } catch ( ... ) { 475 QMessageBox::critical( this, "Unknown Error", "An unknown error occured during Taking Ownership." ); 472 476 } 473 474 475 477 476 478 /* finally re-enable to Take button (may get disabled by initOwnership() again afterwards) */ … … 504 506 QMessageBox::information( this, "Changing TPM Owner Password" , "TPM owner password successfully changed." ); 505 507 506 } catch( TPMError &e ) 507 { 508 } catch( TPMError &e ) { 508 509 string err = "Error while changing owner password.\n" + string( e.what() ); 509 510 QMessageBox::critical( this, "TPM Error", QString::fromStdString( err )); 510 } 511 } catch ( ... ) { 512 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to change TPM Owner password." ); 513 } 514 511 515 // update GUI 512 516 initOwnership(); … … 557 561 string err = "Unknown error while changing SRK password: \n" + string( e.what() ); 558 562 QMessageBox::critical( this, "TPM Error", QString::fromStdString( err )); 559 } 563 } catch ( ... ) { 564 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to change SRK password." ); 565 } 560 566 // update GUI 561 567 initOwnership(); … … 583 589 string err = "Error while clearing ownership. \n" + string( e.what() ); 584 590 QMessageBox::critical( this, "Error: Clear Ownership", QString::fromStdString( err ) ); 585 } 591 } catch ( ... ) { 592 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to clear TPM Ownership." ); 593 } 586 594 // update GUI 587 595 initStatus(); … … 632 640 string err = "Error while deactivating TPM. \n" + string( e.what() ); 633 641 QMessageBox::critical( this, "Error: Deactivate TPM", QString::fromStdString( err ) ); 634 } 635 642 } catch ( ... ) { 643 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to deactivate TPM." ); 644 } 636 645 637 646 // refresh TPM status view & options … … 762 771 QMessageBox::information( this, "Disabling the TPM", "TPM successfully disabled." ); 763 772 } catch ( TPMError &e ) { 764 string err = "Authentication failure. \n" + string( e.what() ); 765 QMessageBox::critical( this, "Error when disabling the TPM" , QString::fromStdString( err ) ); 766 } 773 string err = "Authentication failure. \n" + string( e.what() ); 774 QMessageBox::critical( this, "Error when disabling the TPM" , QString::fromStdString( err ) ); 775 } catch ( ... ) { 776 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to disable TPM." ); 777 } 767 778 } 768 779 else … … 782 793 string err = "Authentication failure. \n" + string( e.what() ); 783 794 QMessageBox::critical( this, "Error when enabling the TPM", QString::fromStdString( err ) ); 784 } 795 } catch ( ... ) { 796 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to enable TPM." ); 797 } 785 798 } 786 799 // refresh TPM status view & options … … 818 831 string err = "Authentication failure. \n" + string( e.what() ); 819 832 QMessageBox::critical( this, "Error when trying to get Endorsement Key" , QString::fromStdString( err ) ); 820 } 833 } catch ( ... ) { 834 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to retrieve TPM Endorsement Key." ); 835 } 821 836 } 822 837 … … 848 863 } catch ( TPMError &e ) { 849 864 string err = "Authentication failure. \n" + string( e.what() ); 850 QMessageBox::critical( this, "Error when trying to save Endorsement Key", QString::fromStdString( err ) ); 851 } 865 QMessageBox::critical( this, "Error when trying to store TPM Endorsement Key", QString::fromStdString( err ) ); 866 } catch ( ... ) { 867 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to store TPM Endorsement Key." ); 868 } 852 869 853 870 } … … 859 876 PasswordDialog passDlg( this ); 860 877 passDlg.setPrompt( "Enter Owner Password" ); 861 passDlg.setDescription( "Enter owner password to restrict viewing public endorsement key information without owner authorization. " );878 passDlg.setDescription( "Enter owner password to restrict viewing public TPM Endorsement Key information without owner authorization. " ); 862 879 863 880 if ( passDlg.exec() == QDialog::Rejected ) … … 873 890 string err = "Error: Restrict Endorsement Key. \n" + string( e.what() ); 874 891 QMessageBox::critical( this, "Error at restrict Endorsement Key", QString::fromStdString( err ) ); 875 } 892 } catch ( ... ) { 893 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to restrict access to TPM Endorsement Key." ); 894 } 876 895 877 896 initIdentity(); … … 898 917 string err = "Error while disabling Maintenance Archive. \n" + string( e.what() ); 899 918 QMessageBox::critical( this, "Error: Disable Maintenance Archive" , QString::fromStdString( err ) ); 900 } 919 } catch ( ... ) { 920 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to disable TPM Maintenance archive." ); 921 } 901 922 } 902 923 -
trunk/src/TPMManager.hxx
r151 r176 27 27 #include <QResource> 28 28 #include <QTimer> 29 #include "ui_ tpmmanagerbase.h"29 #include "ui_TPMManagerBase.h" 30 30 31 #include <microtss/TPM.h >32 #include <microtss/TSS.h >31 #include <microtss/TPM.hxx> 32 #include <microtss/TSS.hxx> 33 33 34 34 /** 35 * @file tpmmanager.h35 * @file TPMManager.hxx 36 36 * 37 37 * @brief TPM Manager Controller Class Header File -
trunk/src/microtss/PublicKey.cxx
r117 r176 22 22 23 23 /** 24 * @file PublicKey.c pp24 * @file PublicKey.cxx 25 25 * 26 26 * @brief Public Key Class Implementation File … … 29 29 30 30 31 #include "PublicKey.h "31 #include "PublicKey.hxx" 32 32 #include <iomanip> 33 33 #include <sstream> -
trunk/src/microtss/PublicKey.hxx
r102 r176 29 29 30 30 /** 31 * @file PublicKey.h 31 * @file PublicKey.hxx 32 32 * 33 33 * @brief Public Key Class Header File -
trunk/src/microtss/TPM.cxx
r151 r176 22 22 23 23 /** 24 * @file TPM.c pp24 * @file TPM.cxx 25 25 * 26 26 * @brief TPM Encapsulation Class Implementation File … … 28 28 **/ 29 29 30 #include "TPM.h "30 #include "TPM.hxx" 31 31 #include <iostream> 32 32 #include <sstream> -
trunk/src/microtss/TPM.hxx
r151 r176 33 33 #include <tss/tpm_error.h> 34 34 35 #include <microtss/PublicKey.h >35 #include <microtss/PublicKey.hxx> 36 36 37 37 #define TSS_ERROR_LAYER(x) (x & 0x3000) … … 39 39 40 40 /** 41 * @file TPM.h 41 * @file TPM.hxx 42 42 * 43 43 * @brief TPM Encapsulation Class Header File -
trunk/src/microtss/TSS.cxx
r102 r176 22 22 23 23 /** 24 * @file TSS.c pp24 * @file TSS.cxx 25 25 * 26 26 * @brief TCG Software Stack Class Implementation File … … 28 28 **/ 29 29 30 #include "TSS.h "30 #include "TSS.hxx" 31 31 #include <sys/stat.h> 32 32 #include <iostream> -
trunk/src/microtss/TSS.hxx
r102 r176 33 33 34 34 /** 35 * @file TSS.h 35 * @file TSS.hxx 36 36 * 37 37 * @brief TCG Software Stack Class Header File -
trunk/tpmmanager.pro
r102 r176 8 8 FORMS = ui/NewPasswordDialog.ui \ 9 9 ui/PasswordDialog.ui \ 10 ui/ publickeyview.ui \11 ui/ setsrkdialog.ui \12 ui/ tpmmanagerbase.ui13 HEADERS = src/NewPasswordDialog.h \14 src/PublicKeyView.h \15 src/SetSRKView.h \16 src/microtss/PublicKey.h \17 src/microtss/TPM.h \18 src/microtss/TSS.h \19 src/ tpmmanager.h\20 src/PasswordDialog.h 10 ui/PublicKeyView.ui \ 11 ui/SetSRKDialog.ui \ 12 ui/TPMManagerBase.ui 13 HEADERS = src/NewPasswordDialog.hxx \ 14 src/PublicKeyView.hxx \ 15 src/SetSRKView.hxx \ 16 src/microtss/PublicKey.hxx \ 17 src/microtss/TPM.hxx \ 18 src/microtss/TSS.hxx \ 19 src/TPMManager.hxx \ 20 src/PasswordDialog.hxx 21 21 INCLUDEPATH += . microtss src 22 22 LIBS += -ltspi … … 24 24 OBJECTS_DIR = build 25 25 QT = core gui 26 SOURCES = src/NewPasswordDialog.c pp\27 src/PublicKeyView.c pp\28 src/SetSRKView.c pp\29 src/ main.cpp\30 src/microtss/PublicKey.c pp\31 src/microtss/TPM.c pp\32 src/microtss/TSS.c pp\33 src/ tpmmanager.cpp\34 src/PasswordDialog.c pp26 SOURCES = src/NewPasswordDialog.cxx \ 27 src/PublicKeyView.cxx \ 28 src/SetSRKView.cxx \ 29 src/Main.cxx \ 30 src/microtss/PublicKey.cxx \ 31 src/microtss/TPM.cxx \ 32 src/microtss/TSS.cxx \ 33 src/TPMManager.cxx \ 34 src/PasswordDialog.cxx 35 35 RESOURCES += ui/resources.qrc 36 36 TEMPLATE = app
