SHA256
8
0
forked from pool/libcotp

39 Commits

Author SHA256 Message Date
cb3a99e751 Accepting request 1324209 from devel:libraries:c_c++
- Update to 3.1.1:
  * Security
    + Memory sanitization: Sensitive cryptographic data is now
      securely cleared from memory
    + Buffer safety: Fixed potential overflow in base32 decoding
  * Improvements
    + Type safety: Migrated to unsigned integers for crypto operations
    + Performance: Optimized base32 length calculations and removed
      redundant calls
    + Code quality: Simplified token formatting and enhanced
      error handling

OBS-URL: https://build.opensuse.org/request/show/1324209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=15
2025-12-22 21:52:30 +00:00
abb13026c1 - Update to 3.1.1:
* Security
    + Memory sanitization: Sensitive cryptographic data is now
      securely cleared from memory
    + Buffer safety: Fixed potential overflow in base32 decoding
  * Improvements
    + Type safety: Migrated to unsigned integers for crypto operations
    + Performance: Optimized base32 length calculations and removed
      redundant calls
    + Code quality: Simplified token formatting and enhanced
      error handling

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=40
2025-12-22 16:43:22 +00:00
1d66b33237 Accepting request 1206644 from devel:libraries:c_c++
- Update to 3.1.0:
  * add support for mbedtls (#69, thanks to @Rockyshen123)
  * add support for big endian archs (#68)-

OBS-URL: https://build.opensuse.org/request/show/1206644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=14
2024-10-11 15:02:17 +00:00
f41402fdfe Accepting request 1166123 from devel:libraries:c_c++
- Disable tests since Criterion is not working after the update of
  nanomsg to 1.2.1 (https://github.com/Snaipe/Criterion/issues/518).

OBS-URL: https://build.opensuse.org/request/show/1166123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=13
2024-04-08 15:40:04 +00:00
a1b21625b9 update spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=35
2024-04-08 08:45:31 +00:00
c054cf43ff fix spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=34
2024-04-08 06:08:21 +00:00
d9194be80c update spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=33
2024-04-08 06:00:22 +00:00
21f72fc78f fix spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=32
2024-04-08 05:59:57 +00:00
187f98cba8 - Disable tests since Criterion is not working after the update of
nanomsg to 1.2.1 (https://github.com/Snaipe/Criterion/issues/518).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=31
2024-04-08 05:57:58 +00:00
7ae86843fe Accepting request 1132822 from devel:libraries:c_c++
- Update to 3.0.0:
  * This release supersedes v2.1.0 and brings a new feature and
    some small code improvements:
    + Add support for OpenSSL (#52), by @mchalain
    + Fix base32 encoding and decoding of bytes array (#54)
    + make is_string_valid_b32 public
    + improve code readability
- Use correct library 'libcriterion-devel'.

OBS-URL: https://build.opensuse.org/request/show/1132822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=12
2023-12-13 17:35:46 +00:00
9e38402adf - Update to 3.0.0:
* This release supersedes v2.1.0 and brings a new feature and
    some small code improvements:
    + Add support for OpenSSL (#52), by @mchalain
    + Fix base32 encoding and decoding of bytes array (#54)
    + make is_string_valid_b32 public
    + improve code readability

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=29
2023-12-13 08:54:37 +00:00
7d41774be1 - Use correct library 'libcriterion-devel'.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=28
2023-12-06 07:31:48 +00:00
9ce5b027c8 Fix build dep
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=27
2023-11-29 06:37:51 +00:00
33905859dc Accepting request 1129625 from devel:libraries:c_c++
- Update to 2.1.0:
  * Fix base32 encoding and decoding of bytes array (#54)
  * Add support for OpenSSL (#52), by @mchalain

OBS-URL: https://build.opensuse.org/request/show/1129625
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=11
2023-11-28 21:20:24 +00:00
33b20c48ea fix spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=25
2023-11-28 14:07:17 +00:00
b8e2a72fb2 fix spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=24
2023-11-28 13:54:11 +00:00
4c81c6da55 - Update to 2.1.0:
* Fix base32 encoding and decoding of bytes array (#54)
  * Add support for OpenSSL (#52), by @mchalain

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=23
2023-11-28 13:52:24 +00:00
c234ebfbe8 Accepting request 1124372 from devel:libraries:c_c++
- update to 2.0.2:
  * Improved CMakeLists
  * Drop link_options, leave it up to every distro

- Build AVX2 enabled hwcaps library for x86_64-v3
- run spec cleaner
  * add c++ support
- Fix soname
- Update libcotp to v1.2.1
- First release on OBS

OBS-URL: https://build.opensuse.org/request/show/1124372
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=10
2023-11-09 20:35:43 +00:00
b95944e384 - update to 2.0.2:
* Improved CMakeLists
  * Drop link_options, leave it up to every distro
- Build AVX2 enabled hwcaps library for x86_64-v3
- run spec cleaner
  * add c++ support
- Fix soname
- Update libcotp to v1.2.1
- First release on OBS

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=21
2023-11-09 09:19:06 +00:00
c364f5b55b Accepting request 1084053 from devel:libraries:c_c++
- Update to 2.0.1:
  * If execution runs fine, set err_code to NO_ERROR in get_totp_at,
    get_steam_totp_at and otp_to_int.
- Revert AVX2 change.

OBS-URL: https://build.opensuse.org/request/show/1084053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=9
2023-05-02 14:38:29 +00:00
540e2e098d - Update to 2.0.1:
* If execution runs fine, set err_code to NO_ERROR in get_totp_at,
    get_steam_totp_at and otp_to_int.
- Revert AVX2 change.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=19
2023-05-02 13:44:15 +00:00
dadbb371b9 Accepting request 1070216 from devel:libraries:c_c++
- Build AVX2 enabled hwcaps library for x86_64-v3

OBS-URL: https://build.opensuse.org/request/show/1070216
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=8
2023-03-09 16:45:22 +00:00
1bf867452d - Build AVX2 enabled hwcaps library for x86_64-v3
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=17
2023-03-08 15:47:17 +00:00
47dfd20f9f Accepting request 1062422 from devel:libraries:c_c++
- Drop libbaseencode dep, since it's no longer necessary and obsolete it
- Fix changelog typo
- update to 2.0.0:
  * In particular, libbaseencode has been merged with libcotp, so now users
    can call base32 functions by just including `cotp.h`
  BREAKING CHANGES:
  * `totp_verify` has been removed
  * `hotp_verify` has been removed
  * `base64_encode` has been removed
  * `base64_decode` has been removed
  ADDED:
  * new API `otp_to_int`
  * `base32` encoding and decoding functions from libbaseencode
  * new tests for libcotp
  CHANGES:
  * the soversion is now set only from the `$major` version (e.g. `2`), and
    not from `$major$minor` (e.g. `12`) like it used to be.

OBS-URL: https://build.opensuse.org/request/show/1062422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=7
2023-02-01 15:39:21 +00:00
431010c69c - Drop libbaseencode dep, since it's no longer necessary and obsolete it
- Fix changelog typo

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=15
2023-02-01 09:38:30 +00:00
4392f32c6a - update to 2.0.0:
* In particular, libbaseencode has been merged with libcotp, so now users
    can call base32 functions by just including `cotp.h`
  BREAKING CHANGES:
  * `totp_verify` has been removed
  * `hotp_verify` has been removed
  * `base64_encode` has been removed
  * `base64_decode` has been removed
  ADDED:
  * new API `otp_to_int`
  * `base32` encoding and decoding functions from libbaseencode
  * new tests for libcotp
  x CHANGES:
  * the soversion is now set only from the `$major` version (e.g. `2`), and
    not from `$major$minor` (e.g. `12`) like it used to be.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=14
2023-01-31 23:27:13 +00:00
e3e7a88f2e Accepting request 1056899 from devel:libraries:c_c++
- Update to 1.2.8:
  * this release fixes a regression brought by v1.2.7.

OBS-URL: https://build.opensuse.org/request/show/1056899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=6
2023-01-08 20:25:57 +00:00
c99a11244b add keyring
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=12
2023-01-08 14:46:17 +00:00
a138814e62 - Update to 1.2.8:
* this release fixes a regression brought by v1.2.7.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=11
2023-01-08 14:45:30 +00:00
b80e141e20 Accepting request 1056146 from devel:libraries:c_c++
- Update to 1.2.7:
  * check return value for gcrypt functions

OBS-URL: https://build.opensuse.org/request/show/1056146
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=5
2023-01-05 14:01:30 +00:00
26c438943f - Update to 1.2.7:
* check return value for gcrypt functions

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=9
2023-01-05 08:38:46 +00:00
e29db8c02a Accepting request 978115 from devel:libraries:c_c++
- Update to 1.2.6:
  * fix pkg-config file generation (#32)

OBS-URL: https://build.opensuse.org/request/show/978115
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=4
2022-05-19 20:49:52 +00:00
70bb492f9a OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=7 2022-05-19 12:00:58 +00:00
c708b10041 Accepting request 943233 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/943233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=3
2021-12-30 14:55:47 +00:00
4e640bb70a Accepting request 943026 from home:polslinux:branches:devel:libraries:c_c++
- Update to v1.2.4:
  * small fixes from PVS scan
  * tests: do no require installation to run tests

OBS-URL: https://build.opensuse.org/request/show/943026
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=5
2021-12-30 14:29:49 +00:00
f6183ef272 Accepting request 796553 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/796553
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=2
2020-04-23 16:39:54 +00:00
0e714997af Accepting request 795882 from home:markoschandras:branches:devel:libraries:c_c++
- Disable debug package on Fedora (https://en.opensuse.org/Fedora_packaging)

OBS-URL: https://build.opensuse.org/request/show/795882
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=3
2020-04-23 12:54:20 +00:00
95ab9eb76f Accepting request 786714 from devel:libraries:c_c++
New package see https://lists.opensuse.org/opensuse-factory/2020-03/msg00221.html

OBS-URL: https://build.opensuse.org/request/show/786714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcotp?expand=0&rev=1
2020-03-20 22:57:26 +00:00
de69c403eb Accepting request 785848 from home:polslinux:otpclient
I would like to maintain in Factory a project I am working on called OTPClient. Before submitting it, I'd need to first submit two deps, namely libbaseencode and libcotp (both developed and maintained by me)

OBS-URL: https://build.opensuse.org/request/show/785848
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcotp?expand=0&rev=1
2020-03-19 08:44:34 +00:00
6 changed files with 37 additions and 21 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Dec 22 16:42:11 UTC 2025 - Paolo Stivanin <info@paolostivanin.com>
- Update to 3.1.1:
* Security
+ Memory sanitization: Sensitive cryptographic data is now
securely cleared from memory
+ Buffer safety: Fixed potential overflow in base32 decoding
* Improvements
+ Type safety: Migrated to unsigned integers for crypto operations
+ Performance: Optimized base32 length calculations and removed
redundant calls
+ Code quality: Simplified token formatting and enhanced
error handling
-------------------------------------------------------------------
Thu Oct 10 07:59:18 UTC 2024 - Paolo Stivanin <info@paolostivanin.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libcotp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
%define libsoname %{name}3
Name: libcotp
Version: 3.1.0
Version: 3.1.1
Release: 0
Summary: C library for generating TOTP and HOTP
License: Apache-2.0

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a48bbfd95b7ec12d23e4e2c4a017f8acddecc14bf10541ff144563cee044b39c
size 20639

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEBgxrfThp8UjExKzUPJvptk7B6mQFAmb/1hMACgkQPJvptk7B
6mSdtQ/+KhRe2SDbtS80Ep3vXgFHy+bIXwOh5rrCDoCGoWF6+GvtOQ4tbhv/VWnS
2/UiKppYUg79HZPJEkXL0JL6oWWjGzoAkTBJfnu3gBOxTRwkGqF6tCcqJfG6xHxm
6Bi0uSqvSdpVmzJe8Pnuf/dP0lk5ZrD7tTU9HjScwxG2mDk8VVVdOFBGhV1MD5FS
EF/cTbRoq0FB9c2ry+/2WIEnxutcK3TnOZu9W21UKXtucZOBUCWbD27O2vI98feP
8GMWJ5xeZ2WBDA7aK52IJw1x0BiWcIqeCxaDN52ELxJYb4f5SgfEN3nuQ9V/zL2c
9lHWhG373eXMsCvjhclkTqSbHfWAP2MamcejKuUzms5/UpiGjLhs91T6D1vKKxT2
Rs+xk4ge5ZtGNQ/h5R5UmX3RijBjLu0GD+fsju10HiN9z5FvwWHK5am1h6JCvsnJ
uF/tt3pc2RNBcS6vEpw89l2PxazJXIphB78q+jQnGFqOZQRihi3QChAf7Al0kBUG
MAV9fuq2XYYl9BNcQsEusoc9GX0Xvi+JNSQL4atF5aHntJgmTO/2Expa7GzFsu9r
uC2h5LGP3KsCP1pmR9DOXgX9rorkfndnpq7Ay3yxLWQ8nLPGBpJPkLPPmgsmZ5id
Z9vK/MK9qT0NAMUOK6ruHLvCZaEcFAY5ca6HSa8Vjw9PXLTIoYo=
=daQu
-----END PGP SIGNATURE-----

3
v3.1.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b5778b8e38d9b0c33d6331ec980094b0035bf53e6064bbcc2ed988b0d4b3d13
size 20828

17
v3.1.1.tar.gz.asc Normal file
View File

@@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJPBAABCAA5FiEEBgxrfThp8UjExKzUPJvptk7B6mQFAmjT4h4bFIAAAAAABAAO
bWFudTIsMi41KzEuMTEsMiwyAAoJEDyb6bZOwepkCqgP/A1BTRoePD/pkjs2/dYa
6hwfcubetydrS3nkAXhUz6IcexAKTPdNsOZRso7k+2gtBcZFmgkpIsR3sQbNmwaN
/NQh4uuj7EV7de38uj/b7DbMbuBv6teqsWTiOxtROhO1RWFVjrdECx/TK+l1uNp2
H6hqU5KornmnGGoLtArdjM24dsyDdSY5Pz6anlUYj+tn6kAK/EVgdwYVg5MKaDgj
jokg7rTlSMOj0HEbxs6kL34Avf7rtn2PHjs5aaGuPJ1c2J4CodhgBo7F8Ys2EmPL
etKOD931a18Y+HYYyITx7Qp36GSr3H6GI/l3QrHVX3CNqb78VPlNUVM2A6QnxA0g
FA3AuI+cAUEvNT1g2UISDyEKJSzXVj7xE8Qw9gW7GwG8WdtQq5rdsUUFwtL/wvRJ
jswVN6XuvUrrtqDDWavtR/4PtegCMX9gA8WKkUICihYvpY2nGs47i6h6kn39+LIX
RjgvuVbgRtnhhsvlmrFufzE55Uwtz+mTPS9kRNqx5yd8UGYBE+SpvihcIxwKkJQ+
4Be1nDmG6+YqddaB8yvK+uN0UfB6K8KOiD0UstAngpZt4feNHWBHjJnm9JlTFsvZ
SG8Ijy+Gm7hw231XRRozFGCwcXTAdmPjTGw14zgcQP74wYFDegrL/l1CR6yE69MH
GwqZVvTNbB/oEZgcAJyQoCvc
=2NBF
-----END PGP SIGNATURE-----