diff --git a/CMakeLists.txt b/CMakeLists.txt index cea8ece..37fe6fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,7 @@ set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/src/openpgp/cmd_keypair_gen.c ${CMAKE_CURRENT_LIST_DIR}/src/openpgp/cmd_reset_retry.c ${CMAKE_CURRENT_LIST_DIR}/src/openpgp/do.c + ${CMAKE_CURRENT_LIST_DIR}/src/openpgp/defs.c ) set(USB_ITF_CCID 1) diff --git a/src/openpgp/defs.c b/src/openpgp/defs.c new file mode 100644 index 0000000..415b58a --- /dev/null +++ b/src/openpgp/defs.c @@ -0,0 +1,20 @@ +/* + * This file is part of the Pico OpenPGP distribution (https://github.com/polhenarejos/pico-openpgp). + * Copyright (c) 2022 Pol Henarejos. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "openpgp.h" + +uint8_t PICO_PRODUCT = 3; diff --git a/src/openpgp/openpgp.c b/src/openpgp/openpgp.c index 6927f81..efbfdab 100644 --- a/src/openpgp/openpgp.c +++ b/src/openpgp/openpgp.c @@ -34,8 +34,6 @@ #include "mbedtls/eddsa.h" #endif -uint8_t PICO_PRODUCT = 3; - bool has_pw1 = false; bool has_pw2 = false; bool has_pw3 = false;