Skip to content

Commit

Permalink
refactoring. rename Applet to Application. Done. Tests passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlokk committed Jun 10, 2020
1 parent 3d20164 commit 0f67bfb
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OBJ_DIR := ./obj
SRC_DIRS := ./pc \
./src \
./src/applets \
./src/applets/openpgp \
./src/applications/openpgp \
./libs/stm32fs
SRC_FILES := $(sort $(foreach var, $(SRC_DIRS), $(wildcard $(var)/*.cpp)))
OBJ_FILES := $(patsubst %.cpp, $(OBJ_DIR)/%.o, $(notdir $(SRC_FILES)))
Expand Down
2 changes: 1 addition & 1 deletion pc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "solofactory.h"
#include "opgputil.h"
#include "applets/apduconst.h"
#include "applications/apduconst.h"
#include "ccid.h"

#define USBIP_MODE
Expand Down
4 changes: 2 additions & 2 deletions src/apduexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include "apduexecutor.h"
#include "opgpdevice.h"
#include "applets/apduconst.h"
#include "applets/application.h"
#include "applications/apduconst.h"
#include "applications/application.h"
#include "solofactory.h"

namespace Application {
Expand Down
4 changes: 2 additions & 2 deletions src/apduexecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include <cstdlib>
#include "opgputil.h"
#include "errors.h"
#include "applets/applicationstorage.h"
#include "applets/apduconst.h"
#include "applications/applicationstorage.h"
#include "applications/apduconst.h"

namespace Application {

Expand Down
12 changes: 6 additions & 6 deletions src/applications/openpgp/cryptoapdu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
copied, modified, or distributed except according to those terms.
*/

#include <applets/openpgp/security.h>
#include <applications/openpgp/security.h>
#include "cryptoapdu.h"
#include "tlv.h"
#include "opgpdevice.h"
#include "applets/apduconst.h"
#include "applications/apduconst.h"
#include "solofactory.h"
#include "applets/openpgp/openpgpfactory.h"
#include "applets/openpgpapplication.h"
#include "applets/openpgp/openpgpconst.h"
#include "applets/openpgp/openpgpstruct.h"
#include "applications/openpgp/openpgpfactory.h"
#include "applications/openpgpapplication.h"
#include "applications/openpgp/openpgpconst.h"
#include "applications/openpgp/openpgpstruct.h"

namespace OpenPGP {

Expand Down
2 changes: 1 addition & 1 deletion src/applications/openpgp/cryptoapdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <string_view>
#include "errors.h"
#include "applets/apducommand.h"
#include "applications/apducommand.h"

namespace OpenPGP {

Expand Down
2 changes: 1 addition & 1 deletion src/applications/openpgp/openpgpfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
copied, modified, or distributed except according to those terms.
*/

#include <applets/openpgp/openpgpfactory.h>
#include <applications/openpgp/openpgpfactory.h>
#include "solofactory.h"

namespace OpenPGP {
Expand Down
4 changes: 2 additions & 2 deletions src/applications/openpgp/openpgpfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
#ifndef SRC_OPENPGP_OPENPGPFACTORY_H_
#define SRC_OPENPGP_OPENPGPFACTORY_H_

#include <applets/openpgp/security.h>
#include <applications/openpgp/security.h>
#include <array>

#include "applets/apducommand.h"
#include "applications/apducommand.h"
#include "resetprovider.h"
#include "userapdu.h"
#include "cryptoapdu.h"
Expand Down
12 changes: 6 additions & 6 deletions src/applications/openpgp/secureapdu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

#include "secureapdu.h"

#include <applets/openpgp/security.h>
#include "applets/apduconst.h"
#include <applications/openpgp/security.h>
#include "applications/apduconst.h"
#include "solofactory.h"
#include "applets/openpgp/openpgpfactory.h"
#include "applets/openpgpapplication.h"
#include "applets/openpgp/openpgpconst.h"
#include "applets/openpgp/openpgpstruct.h"
#include "applications/openpgp/openpgpfactory.h"
#include "applications/openpgpapplication.h"
#include "applications/openpgp/openpgpconst.h"
#include "applications/openpgp/openpgpstruct.h"
#include "opgpdevice.h"

namespace OpenPGP {
Expand Down
2 changes: 1 addition & 1 deletion src/applications/openpgp/secureapdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <string_view>
#include "errors.h"
#include "applets/apducommand.h"
#include "applications/apducommand.h"

namespace OpenPGP {

Expand Down
4 changes: 2 additions & 2 deletions src/applications/openpgp/security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
copied, modified, or distributed except according to those terms.
*/

#include <applets/openpgp/security.h>
#include <applications/openpgp/security.h>
#include <array>

#include "errors.h"
#include "applets/apduconst.h"
#include "applications/apduconst.h"
#include "solofactory.h"

namespace OpenPGP {
Expand Down
8 changes: 4 additions & 4 deletions src/applications/openpgp/userapdu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
copied, modified, or distributed except according to those terms.
*/

#include <applets/openpgp/security.h>
#include <applications/openpgp/security.h>
#include "opgpdevice.h"
#include "userapdu.h"
#include "applets/apduconst.h"
#include "applications/apduconst.h"
#include "solofactory.h"
#include "applets/openpgp/openpgpfactory.h"
#include "applets/openpgpapplication.h"
#include "applications/openpgp/openpgpfactory.h"
#include "applications/openpgpapplication.h"
#include "openpgpconst.h"
#include "openpgpstruct.h"
#include "filesystem.h"
Expand Down
2 changes: 1 addition & 1 deletion src/applications/openpgp/userapdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include <string_view>
#include "errors.h"
#include "applets/apducommand.h"
#include "applications/apducommand.h"

namespace OpenPGP {

Expand Down
2 changes: 1 addition & 1 deletion src/applications/openpgpapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
copied, modified, or distributed except according to those terms.
*/

#include <applets/openpgp/security.h>
#include <applications/openpgp/security.h>
#include "opgpdevice.h"
#include "openpgpapplication.h"
#include "apduconst.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cryptolib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "tlv.h"
#include "solofactory.h"
#include "filesystem.h"
#include "applets/openpgp/openpgpconst.h"
#include "applications/openpgp/openpgpconst.h"

#include "i15_addon.h"

Expand Down
2 changes: 1 addition & 1 deletion src/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <array>
#include "opgpdevice.h"
#include "tlv.h"
#include "applets/openpgp/openpgpconst.h"
#include "applications/openpgp/openpgpconst.h"

namespace File {

Expand Down
4 changes: 2 additions & 2 deletions src/solofactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include "cryptolib.h"
#include "apduexecutor.h"
#include "applets/applicationstorage.h"
#include "applets/openpgp/openpgpfactory.h"
#include "applications/applicationstorage.h"
#include "applications/openpgp/openpgpfactory.h"
#include "filesystem.h"

namespace Factory {
Expand Down
2 changes: 1 addition & 1 deletion stm32l432/Makefile.lib
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OBJ_DIR := ./obj
SRC_DIRS := ./pc \
./src \
./src/applets \
./src/applets/openpgp \
./src/applications/openpgp \
./libs/stm32fs
SRC_FILES := $(sort $(foreach var, $(SRC_DIRS), $(wildcard $(var)/*.cpp)))
OBJ_FILES := $(patsubst %.cpp, $(OBJ_DIR)/%.o, $(notdir $(SRC_FILES)))
Expand Down
2 changes: 1 addition & 1 deletion stm32l432/openpgplib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "openpgplib.h"
#include "opgpdevice.h"
#include "solofactory.h"
#include "applets/apduconst.h"
#include "applications/apduconst.h"

#include "device.h"

Expand Down

0 comments on commit 0f67bfb

Please sign in to comment.