Changeset 177
- Timestamp:
- 03/08/10 11:37:24 (6 months ago)
- Location:
- changes/tpmmanager-micro
- Files:
-
- 2 modified
- 14 moved
-
SConscript (modified) (2 diffs)
-
src/Main.cxx (moved) (moved from changes/tpmmanager-micro/src/main.cpp) (2 diffs)
-
src/NewPasswordDialog.cxx (moved) (moved from changes/tpmmanager-micro/src/NewPasswordDialog.cpp) (2 diffs)
-
src/NewPasswordDialog.hxx (moved) (moved from changes/tpmmanager-micro/src/NewPasswordDialog.h) (1 diff)
-
src/PasswordDialog.cxx (moved) (moved from changes/tpmmanager-micro/src/PasswordDialog.cpp) (2 diffs)
-
src/PasswordDialog.hxx (moved) (moved from changes/tpmmanager-micro/src/PasswordDialog.h) (1 diff)
-
src/PublicKeyView.cxx (moved) (moved from changes/tpmmanager-micro/src/PublicKeyView.cpp) (2 diffs)
-
src/PublicKeyView.hxx (moved) (moved from changes/tpmmanager-micro/src/PublicKeyView.h) (2 diffs)
-
src/SetSRKView.cxx (moved) (moved from changes/tpmmanager-micro/src/SetSRKView.cpp) (2 diffs)
-
src/SetSRKView.hxx (moved) (moved from changes/tpmmanager-micro/src/SetSRKView.h) (1 diff)
-
src/TPMManager.cxx (moved) (moved from changes/tpmmanager-micro/src/tpmmanager.cpp) (15 diffs)
-
src/TPMManager.hxx (moved) (moved from changes/tpmmanager-micro/src/tpmmanager.h) (2 diffs)
-
tpmmanager.pro (modified) (1 diff)
-
ui/PublicKeyView.ui (moved) (moved from changes/tpmmanager-micro/ui/publickeyview.ui)
-
ui/SetSRKDialog.ui (moved) (moved from changes/tpmmanager-micro/ui/setsrkdialog.ui)
-
ui/TPMManagerBase.ui (moved) (moved from changes/tpmmanager-micro/ui/tpmmanagerbase.ui)
Legend:
- Unmodified
- Added
- Removed
-
changes/tpmmanager-micro/SConscript
r166 r177 27 27 28 28 # optional: set the C++ file suffix; TPM Manager still has .cpp 29 local['CXXFILESUFFIX'] = '.c pp'29 local['CXXFILESUFFIX'] = '.cxx' 30 30 local['CXXFLAGS'] = '' 31 31 … … 39 39 rccs = [ local.Qrc( "ui/resources.qrc", QT4_QRCFLAGS = "-name resources" ) ] 40 40 # add Qt4 user interface files (.ui) 41 uis = [ local.Uic4(ui) for ui in [ "ui/ tpmmanagerbase.ui", "ui/setsrkdialog.ui", "ui/publickeyview.ui", "ui/PasswordDialog.ui", "ui/NewPasswordDialog.ui" ] ]41 uis = [ local.Uic4(ui) for ui in [ "ui/TPMManagerBase.ui", "ui/SetSRKDialog.ui", "ui/PublicKeyView.ui", "ui/PasswordDialog.ui", "ui/NewPasswordDialog.ui" ] ] 42 42 43 43 # last but not least, add all of our source files 44 44 # we only need to add our own source files, not the one created from .ui files 45 sources = [ "src/ main.cpp", "src/tpmmanager.cpp", "src/SetSRKView.cpp", "src/PublicKeyView.cpp", "src/PasswordDialog.cpp", "src/NewPasswordDialog.cpp" ]45 sources = [ "src/Main.cxx", "src/TPMManager.cxx", "src/SetSRKView.cxx", "src/PublicKeyView.cxx", "src/PasswordDialog.cxx", "src/NewPasswordDialog.cxx" ] 46 46 47 47 # finally, start the build process -
changes/tpmmanager-micro/src/Main.cxx
r161 r177 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 /// Main application loop 48 48 int main(int argc, char ** argv) -
changes/tpmmanager-micro/src/NewPasswordDialog.cxx
r102 r177 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) -
changes/tpmmanager-micro/src/NewPasswordDialog.hxx
r131 r177 28 28 29 29 /** 30 * @file NewPasswordDialog.h 30 * @file NewPasswordDialog.hxx 31 31 * 32 32 * @brief New Password Dialog Class Header File -
changes/tpmmanager-micro/src/PasswordDialog.cxx
r102 r177 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 -
changes/tpmmanager-micro/src/PasswordDialog.hxx
r131 r177 28 28 29 29 /** 30 * @file PasswordDialog.h 30 * @file PasswordDialog.hxx 31 31 * 32 32 * @brief Password Dialog Class Header File -
changes/tpmmanager-micro/src/PublicKeyView.cxx
r171 r177 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> -
changes/tpmmanager-micro/src/PublicKeyView.hxx
r171 r177 25 25 26 26 #include <QDialog> 27 #include "ui/ui_ publickeyview.h"27 #include "ui/ui_PublicKeyView.h" 28 28 29 29 #include <tss/microtss/EndorsementKey.hxx> … … 32 32 33 33 /** 34 * @file PublicKeyView.h 34 * @file PublicKeyView.hxx 35 35 * 36 36 * @brief Public Key Dialog Class Header File -
changes/tpmmanager-micro/src/SetSRKView.cxx
r172 r177 22 22 23 23 /** 24 * @file SetSRKView.c pp24 * @file SetSRKView.cxx 25 25 * 26 26 * @brief SRK Password Choose Dialog Class Implementation File … … 28 28 **/ 29 29 30 #include "SetSRKView.h "30 #include "SetSRKView.hxx" 31 31 #include <iostream> 32 32 #include <QString> -
changes/tpmmanager-micro/src/SetSRKView.hxx
r131 r177 25 25 // 26 26 #include <QDialog> 27 #include "ui/ui_ setsrkdialog.h"27 #include "ui/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 -
changes/tpmmanager-micro/src/TPMManager.cxx
r175 r177 22 22 23 23 /** 24 * @file tpmmanager.cpp24 * @file TPMManager.cxx 25 25 * 26 26 * @brief TPM Manager Controller Class Implementation File … … 54 54 #include <utils/ByteVector.hxx> 55 55 #include <tss/tcs/TestingSecretProvider.hxx> 56 #include "PublicKeyView.h "57 #include "PasswordDialog.h "58 #include "NewPasswordDialog.h "59 #include "SetSRKView.h "60 #include " tpmmanager.h"56 #include "PublicKeyView.hxx" 57 #include "PasswordDialog.hxx" 58 #include "NewPasswordDialog.hxx" 59 #include "SetSRKView.hxx" 60 #include "TPMManager.hxx" 61 61 62 62 #define VERSION "0.9.1" … … 104 104 } catch ( tcs::TPM_Error &e ) { 105 105 QMessageBox::critical( this, "Miscellaneous TPM Error", QString::fromStdString( string("An unknown TPM Error occured: ").append( e.what() ) ) ); 106 } catch ( ... ) { 107 QMessageBox::critical( this, "Unknown Error", "An unknown error occured during initialization." ); 106 108 } 107 109 … … 499 501 std::string msg = "Take Ownership failed (" + string( e.what() ) + ")"; 500 502 QMessageBox::critical( this, "Taking Ownership Failed", QString::fromStdString( msg ) ); 501 } 503 } catch ( ... ) { 504 QMessageBox::critical( this, "Unknown Error", "An unknown error occured during Taking Ownership." ); 505 } 502 506 503 507 /* finally re-enable to Take button (may get disabled by initOwnership() again afterwards) */ … … 537 541 string err = "Authentication failure while changing owner password: \n" + string( e.what() ); 538 542 QMessageBox::critical( this, "TPM Error", QString::fromStdString( err )); 539 } 543 } catch ( ... ) { 544 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to change TPM Owner password." ); 545 } 540 546 // update GUI 541 547 initOwnership(); … … 586 592 string err = "Authentication failure while changing SRK password: \n" + string( e.what() ); 587 593 QMessageBox::critical( this, "TPM Error", QString::fromStdString( err )); 588 } 594 } catch ( ... ) { 595 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to change SRK password." ); 596 } 589 597 // update GUI 590 598 initOwnership(); … … 619 627 string err = "Authentication failure while clearing TPM: \n" + string( e.what() ); 620 628 QMessageBox::critical( this, "Error: TPM Clear", QString::fromStdString( err )); 621 } 629 } catch ( ... ) { 630 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to clear TPM Ownership." ); 631 } 622 632 // update GUI 623 633 initStatus(); … … 644 654 std::string msg = "TPM Selftest failed (" + string( e.what() ) + ")"; 645 655 QMessageBox::critical( this, "TPM Selftest", QString::fromStdString( msg ) ); 646 } 656 } catch ( ... ) { 657 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when performing the TPM selftest." ); 658 } 647 659 // refresh TPM status view 648 660 initStatusGroup(); … … 675 687 string err = "No TPM Operator installed (" + string( e.what() ) + ")"; 676 688 QMessageBox::critical( this, "Error: Deactivate TPM", QString::fromStdString( err ) ); 677 } 689 } catch ( ... ) { 690 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to deactivate TPM." ); 691 } 678 692 679 693 … … 812 826 string err = "Authentication failure while disabling TPM: \n" + string( e.what() ); 813 827 QMessageBox::critical( this, "TPM Error", QString::fromStdString( err )); 814 } 828 } catch ( ... ) { 829 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to disable TPM." ); 830 } 815 831 } 816 832 else … … 833 849 string err = "Authentication failure while enabling TPM: \n" + string( e.what() ); 834 850 QMessageBox::critical( this, "TPM Error", QString::fromStdString( err )); 835 } 851 } catch ( ... ) { 852 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to enable TPM." ); 853 } 836 854 } 837 855 // refresh TPM status view & options … … 873 891 string err = "Authentication failed while trying to get Endorsement Key: \n" + string( e.what() ); 874 892 QMessageBox::critical( this, "Error: Show Endorsement Key", QString::fromStdString( err )); 875 } 893 } catch ( ... ) { 894 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to retrieve TPM Endorsement Key." ); 895 } 876 896 } 877 897 … … 905 925 fs.close(); 906 926 } catch ( tcs::TPM_FAIL_Error &e ) { 907 string err = "Error when trying to save Endorsement Key. \n" + string( e.what() );908 QMessageBox::critical( this, "Error: Save Endorsement Key", QString::fromStdString( err ) );927 string err = "Error when trying to store Endorsement Key. \n" + string( e.what() ); 928 QMessageBox::critical( this, "Error: Store Endorsement Key", QString::fromStdString( err ) ); 909 929 } catch ( tcs::TPM_AUTHFAIL_Error &e ) { 910 string err = "Authentication failed while trying to save Endorsement Key. \n" + string( e.what() );911 QMessageBox::critical( this, "Error: Save Endorsement Key", QString::fromStdString( err ) );930 string err = "Authentication failed while trying to store Endorsement Key. \n" + string( e.what() ); 931 QMessageBox::critical( this, "Error: Store Endorsement Key", QString::fromStdString( err ) ); 912 932 } catch ( tcs::TPM_DEFEND_LOCK_RUNNING_Error &e ) { 913 string err = "Authentication failed while trying to save Endorsement Key: \n" + string( e.what() ); 914 QMessageBox::critical( this, "Error: Save Endorsement Key", QString::fromStdString( err )); 915 } 933 string err = "Authentication failed while trying to store Endorsement Key: \n" + string( e.what() ); 934 QMessageBox::critical( this, "Error: Store Endorsement Key", QString::fromStdString( err )); 935 } catch ( ... ) { 936 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to store TPM Endorsement Key." ); 937 } 916 938 917 939 } … … 945 967 string err = "Authentication failed while trying to restrict Endorsement Key: \n" + string( e.what() ); 946 968 QMessageBox::critical( this, "Error: Restrict Endorsement Key", QString::fromStdString( err )); 947 } 969 } catch ( ... ) { 970 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to restrict access to TPM Endorsement Key." ); 971 } 948 972 949 973 initIdentity(); … … 979 1003 string err = "Authentication failed while trying to disable Maintenance feature: \n" + string( e.what() ); 980 1004 QMessageBox::critical( this, "Error: Disable Maintenance", QString::fromStdString( err )); 981 } 1005 } catch ( ... ) { 1006 QMessageBox::critical( this, "Unknown Error", "An unknown error occured when trying to disable TPM Maintenance archive." ); 1007 } 982 1008 } 983 1009 -
changes/tpmmanager-micro/src/TPMManager.hxx
r171 r177 27 27 #include <QResource> 28 28 #include <QTimer> 29 #include "ui/ui_ tpmmanagerbase.h"29 #include "ui/ui_TPMManagerBase.h" 30 30 31 31 #include <tss/microtss/TPM.hxx> … … 37 37 38 38 /** 39 * @file tpmmanager.h39 * @file TPMManager.hxx 40 40 * 41 41 * @brief TPM Manager Controller Class Header File -
changes/tpmmanager-micro/tpmmanager.pro
r102 r177 8 8 FORMS = ui/NewPasswordDialog.ui \ 9 9 ui/PasswordDialog.ui \ 10 ui/ publickeyview.ui \11 ui/ setsrkdialog.ui \12 ui/ tpmmanagerbase.ui10 ui/PublicKeyView.ui \ 11 ui/SetSRKDialog.ui \ 12 ui/TPMManagerBase.ui 13 13 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 21 INCLUDEPATH += . microtss src 14 src/PublicKeyView.hxx \ 15 src/SetSRKView.hxx \ 16 src/TPMManager.hxx \ 17 src/PasswordDialog.hxx \ 18 src/NewPasswordDialog.hxx 19 INCLUDEPATH += . src 22 20 LIBS += -ltspi 23 21 MOC_DIR = build 24 22 OBJECTS_DIR = build 25 23 QT = core gui 26 SOURCES = src/NewPasswordDialog.cpp \ 27 src/PublicKeyView.cpp \ 28 src/SetSRKView.cpp \ 29 src/main.cpp \ 30 src/microtss/PublicKey.cpp \ 31 src/microtss/TPM.cpp \ 32 src/microtss/TSS.cpp \ 33 src/tpmmanager.cpp \ 34 src/PasswordDialog.cpp 24 SOURCES = src/NewPasswordDialog.cxx \ 25 src/PublicKeyView.cxx \ 26 src/SetSRKView.cxx \ 27 src/Main.cxx \ 28 src/TPMManager.cxx \ 29 src/PasswordDialog.cxx 35 30 RESOURCES += ui/resources.qrc 36 31 TEMPLATE = app
