Pol Henarejos
dba614ed36
Relicense project under the GNU Affero General Public License v3 (AGPLv3)
...
and add the Enterprise / Commercial licensing option.
Main changes:
- Replace GPLv3 headers with AGPLv3 headers in source files.
- Update LICENSE file to the full AGPLv3 text.
- Add ENTERPRISE.md describing the dual-licensing model:
* Community Edition: AGPLv3 (strong copyleft, including network use).
* Enterprise / Commercial Edition: proprietary license for production /
multi-user / OEM use without the obligation to disclose derivative code.
- Update README with a new "License and Commercial Use" section pointing to
ENTERPRISE.md and clarifying how companies can obtain a commercial license.
Why this change:
- AGPLv3 ensures that modified versions offered as a service or deployed
in production environments must provide corresponding source code.
- The Enterprise / Commercial edition provides organizations with an
alternative proprietary license that allows internal, large-scale, or OEM
use (bulk provisioning, policy enforcement, inventory / revocation,
custom attestation, signed builds) without AGPL disclosure obligations.
This commit formally marks the first release that is dual-licensed:
AGPLv3 for the Community Edition and a proprietary commercial license
for Enterprise customers.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-10-26 20:18:45 +01:00
Pol Henarejos
747e5fbe86
Added phy_save() and phy_load() to save and load PHY.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2025-01-29 17:09:29 +01:00
Pol Henarejos
c6b03e54ca
Fix TX/RX buffers to align them with USB buffers and avoid overflows.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-24 02:06:15 +01:00
Pol Henarejos
991f5fc960
More uint funcs.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-23 21:41:40 +01:00
Pol Henarejos
6d516b1b78
Use BE/LE functions for packing uint16.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-23 21:01:12 +01:00
Pol Henarejos
73232b6de4
Add LE/BE functions for uint16, 32 and 64.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-23 20:39:03 +01:00
Pol Henarejos
d56b540324
Add support for displaying memory usage.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-23 20:24:10 +01:00
Pol Henarejos
859dec7e4a
Accept mkek mask only if secure lock is enabled.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-08 01:23:51 +01:00
Pol Henarejos
f88aad1e2c
Fixed buffer overflow when unlocking the device.
...
Fixes #68 .
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-12-03 08:36:05 +01:00
Pol Henarejos
866aac8fe3
Add reboot extra command.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-11-27 21:48:04 +01:00
Pol Henarejos
3c6684cdab
Rename CCID_ codes to PICOKEY_
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-11-05 19:29:00 +01:00
Pol Henarejos
9fa3758dad
Add support for OTP raw read/write.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-28 00:15:48 +01:00
Pol Henarejos
2856ec6917
Align data in case it's not.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-27 02:14:51 +02:00
Pol Henarejos
ccec83dfb1
Fix otp write length check.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-27 01:41:12 +02:00
Pol Henarejos
9de1b4ca5d
Fix OTP data check size.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-27 01:24:49 +02:00
Pol Henarejos
cbd9a5d296
Add sanitize check.
...
Only pages 0 and 1 are allowed for reading.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-27 01:24:36 +02:00
Pol Henarejos
812a737ff5
Fix length.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-13 20:52:29 +02:00
Pol Henarejos
6163b870ed
Fix haders.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-13 20:51:18 +02:00
Pol Henarejos
08d4dc58aa
Add OTP extra command to read/write OTP without bootmode.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-13 20:25:59 +02:00
Pol Henarejos
0193e55f7b
Use macros in extras.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-10-13 20:06:58 +02:00
Pol Henarejos
f7451f56ed
Add support for led dimming and max. brightness.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-09-30 09:21:39 +02:00
Pol Henarejos
af099cd416
Add support to RP2350.
...
RP2350 does not support RTC, so we use AON timer instead.
2024-08-28 16:42:46 +02:00
Pol Henarejos
9a7be98e6e
Settings proper phy options
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-06-21 22:08:36 +02:00
Pol Henarejos
d1fb4d0c65
Merge branch 'master' into development
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-06-21 21:14:43 +02:00
Pol Henarejos
79f76a176d
Fix time.h header.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-06-19 23:36:41 +02:00
Pol Henarejos
f20fdc9bda
Add missing header.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-06-19 22:42:19 +02:00
Pol Henarejos
b4671c2ecb
Merge branch 'esp32' into development
2024-06-19 22:03:47 +02:00
Pol Henarejos
54cdbfc22c
Add PHY OPTS.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-06-19 22:01:15 +02:00
fastchain
87ffd21543
Update cmd_extras.c
...
This security fix ensures that the extra settings, cannot be silently disabled, if button control enabled. So the button control setting cannot be silently (without button push) disabled, even if the user's PC is fully compromised.
2024-06-13 16:09:54 +09:00
Pol Henarejos
7cb0bbf982
Merge branch 'development' into esp32
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-06-03 13:06:39 +02:00
Pol Henarejos
218660e694
Only allow change PHY without PIN. PIN is required for other extra options.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-22 23:47:08 +02:00
Pol Henarejos
b034303193
Use new methods search_file() and file_put_data().
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-17 16:36:34 +02:00
Pol Henarejos
fdc41e5856
Add support for PHY command to store and change VIDPID and LED no. dynamically on reboot.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-17 11:50:44 +02:00
Pol Henarejos
aeeb540a2f
Add support for PHY command to store and change VIDPID and LED no. dynamically on reboot.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-16 23:22:49 +02:00
Pol Henarejos
d6456b4dde
First attempt to add support to ESP32.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-08 19:41:39 +02:00
Pol Henarejos
2b92d89ab7
Fix size_t casting.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-01-02 19:56:38 +01:00
Pol Henarejos
d82affa880
Added support for building emulation in Windows.
...
It has not been tested but it should not break any linux build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-01-01 01:55:49 +01:00
Pol Henarejos
cd6e280f4f
Switching to new style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-02-15 00:10:35 +01:00
Pol Henarejos
daaa5bf402
Harmonize coding style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-02-14 23:13:46 +01:00
Pol Henarejos
742c3f3e3c
RTC command is not available in emulation.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-12 20:04:23 +01:00
Pol Henarejos
00279da8d5
Adding Secure Lock to lock the device with a random 256 bit key.
...
This is an extra layer of security to avoid brute force attacks if PIN is too weak.
At every hard reset (on device plug), the device must be unlocked prior any other command. Once unlocked, the device can be used as usual.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-10-31 15:09:54 +01:00
Pol Henarejos
aebb68724a
Removing trailing spaces.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-19 01:44:27 +02:00
Pol Henarejos
6956587106
Add newline at the end of file.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-13 23:31:09 +02:00
Pol Henarejos
e6f082d512
Splitting cmd_xxx() functions in separate files.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-13 14:59:27 +02:00