Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libcotp for openSUSE:Factory checked 
in at 2023-05-02 16:38:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcotp (Old)
 and      /work/SRC/openSUSE:Factory/.libcotp.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcotp"

Tue May  2 16:38:29 2023 rev:9 rq:1084053 version:2.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcotp/libcotp.changes  2023-03-09 
17:45:38.430876140 +0100
+++ /work/SRC/openSUSE:Factory/.libcotp.new.1533/libcotp.changes        
2023-05-02 16:38:30.313015330 +0200
@@ -1,0 +2,8 @@
+Tue May  2 13:41:18 UTC 2023 - Paolo Stivanin <i...@paolostivanin.com>
+
+- 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.
+
+-------------------------------------------------------------------

Old:
----
  baselibs.conf
  v2.0.0.tar.gz
  v2.0.0.tar.gz.asc

New:
----
  v2.0.1.tar.gz
  v2.0.1.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libcotp.spec ++++++
--- /var/tmp/diff_new_pack.DZzwj8/_old  2023-05-02 16:38:30.957019134 +0200
+++ /var/tmp/diff_new_pack.DZzwj8/_new  2023-05-02 16:38:30.961019157 +0200
@@ -21,7 +21,7 @@
 %global debug_package %{nil}
 %endif
 Name:           libcotp
-Version:        2.0.0
+Version:        2.0.1
 Release:        0
 Summary:        C library for generating TOTP and HOTP
 License:        Apache-2.0
@@ -30,14 +30,12 @@
 Source0:        
https://github.com/paolostivanin/%{name}/archive/v%{version}.tar.gz
 Source1:        
https://github.com/paolostivanin/libcotp/releases/download/v%{version}/v%{version}.tar.gz.asc
 Source2:        %{name}.keyring
-Source3:        baselibs.conf
 BuildRequires:  cmake
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 BuildRequires:  libgcrypt-devel
 BuildRequires:  pkgconfig
 Obsoletes:      libbaseencode <= 1.0.15
-%{?suse_build_hwcaps_libs}
 
 %description
 %{name} C library for generating TOTP and HOTP according to RFC-6238.
@@ -62,15 +60,14 @@
 Pkg-config and header files for developing applications that use %{name}
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
-# FIXME: you should use %%cmake macros
-cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .
-%make_build
+%cmake
+%cmake_build
 
 %install
-%make_install
+%cmake_install
 
 %post -n        %{libsoname} -p /sbin/ldconfig
 %postun -n      %{libsoname} -p /sbin/ldconfig


++++++ v2.0.0.tar.gz -> v2.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcotp-2.0.0/CMakeLists.txt 
new/libcotp-2.0.1/CMakeLists.txt
--- old/libcotp-2.0.0/CMakeLists.txt    2023-01-10 09:55:07.000000000 +0100
+++ new/libcotp-2.0.1/CMakeLists.txt    2023-05-02 14:53:29.000000000 +0200
@@ -1,5 +1,5 @@
 cmake_minimum_required(VERSION 3.16)
-project(cotp VERSION "2.0.0" LANGUAGES "C")
+project(cotp VERSION "2.0.1" LANGUAGES "C")
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcotp-2.0.0/SECURITY.md 
new/libcotp-2.0.1/SECURITY.md
--- old/libcotp-2.0.0/SECURITY.md       2023-01-10 09:55:07.000000000 +0100
+++ new/libcotp-2.0.1/SECURITY.md       2023-05-02 14:53:29.000000000 +0200
@@ -6,7 +6,7 @@
 
 | Version | Supported          | EOL         |
 |---------| ------------------ |-------------|
-| 2.0.0   | :heavy_check_mark: | -           |
+| 2.0.x   | :heavy_check_mark: | -           |
 | 1.2.x   | :heavy_check_mark: | 30-Jun-2023 |
 | 1.1.x   | :x:            | 31-Dec-2021 |
 | 1.0.x   | :x:           | 31-Dec-2021 |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcotp-2.0.0/src/otp.c new/libcotp-2.0.1/src/otp.c
--- old/libcotp-2.0.0/src/otp.c 2023-01-10 09:55:07.000000000 +0100
+++ new/libcotp-2.0.1/src/otp.c 2023-05-02 14:53:29.000000000 +0200
@@ -102,6 +102,8 @@
         *err_code = err;
         return NULL;
     }
+  
+    *err_code = NO_ERROR;
 
     return totp;
 }
@@ -156,6 +158,8 @@
 
     char *totp = get_steam_code (hmac);
 
+    *err_code = NO_ERROR;
+
     free(hmac);
 
     return totp;
@@ -174,6 +178,8 @@
 
     if (otp[0] == '0') {
         *err_code = MISSING_LEADING_ZERO;
+    } else {
+        *err_code = NO_ERROR;
     }
 
     return strtoll (otp, NULL, 10);
@@ -351,4 +357,4 @@
 check_algo (int algo)
 {
     return (algo != SHA1 && algo != SHA256 && algo != SHA512) ? INVALID_ALGO : 
VALID;
-}
\ No newline at end of file
+}

Reply via email to