Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package keepass-plugin-HIBPOfflineCheck for 
openSUSE:Factory checked in at 2022-05-22 20:27:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/keepass-plugin-HIBPOfflineCheck (Old)
 and      /work/SRC/openSUSE:Factory/.keepass-plugin-HIBPOfflineCheck.new.1538 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "keepass-plugin-HIBPOfflineCheck"

Sun May 22 20:27:59 2022 rev:4 rq:978520 version:1.7.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/keepass-plugin-HIBPOfflineCheck/keepass-plugin-HIBPOfflineCheck.changes
  2021-08-31 19:56:21.698012276 +0200
+++ 
/work/SRC/openSUSE:Factory/.keepass-plugin-HIBPOfflineCheck.new.1538/keepass-plugin-HIBPOfflineCheck.changes
        2022-05-22 20:28:07.538325819 +0200
@@ -1,0 +2,6 @@
+Sun May 22 09:29:58 UTC 2022 - Matthias Bach <ma...@marix.org> - 1.7.7
+
+- Update to version 1.7.7
+  * Online mode now uses KeePass proxy settings
+
+-------------------------------------------------------------------

Old:
----
  HIBPOfflineCheck-1.7.6.tar.gz

New:
----
  HIBPOfflineCheck-1.7.7.tar.gz

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

Other differences:
------------------
++++++ keepass-plugin-HIBPOfflineCheck.spec ++++++
--- /var/tmp/diff_new_pack.t1jZl5/_old  2022-05-22 20:28:07.942326414 +0200
+++ /var/tmp/diff_new_pack.t1jZl5/_new  2022-05-22 20:28:07.946326420 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package keepass-plugin-HIBPOfflineCheck
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2020 Matthias Bach <ma...@marix.org>.
 #
 # All modifications and additions to the file contributed by third parties
@@ -19,7 +19,7 @@
 
 %define _plugin_name HIBPOfflineCheck
 Name:           keepass-plugin-%{_plugin_name}
-Version:        1.7.6
+Version:        1.7.7
 Release:        0
 Summary:        A KeePass plugin for Have I been pwned
 License:        GPL-3.0-only

++++++ HIBPOfflineCheck-1.7.6.tar.gz -> HIBPOfflineCheck-1.7.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/HIBPOfflineCheck-1.7.6/HIBPOfflineCheck/HIBPOfflineColumnProv.cs 
new/HIBPOfflineCheck-1.7.7/HIBPOfflineCheck/HIBPOfflineColumnProv.cs
--- old/HIBPOfflineCheck-1.7.6/HIBPOfflineCheck/HIBPOfflineColumnProv.cs        
2021-08-18 17:24:17.000000000 +0200
+++ new/HIBPOfflineCheck-1.7.7/HIBPOfflineCheck/HIBPOfflineColumnProv.cs        
2022-05-18 14:45:56.000000000 +0200
@@ -14,6 +14,7 @@
 using System.Net;
 using KeePassLib.Collections;
 using KeePassLib.Delegates;
+using KeePassLib.Serialization;
 
 namespace HIBPOfflineCheck
 {
@@ -92,57 +93,47 @@
             var pwdSha = GetPasswordSHA();
             var truncatedSha = pwdSha.Substring(0, 5);
 
-            ServicePointManager.ServerCertificateValidationCallback = delegate 
{ return true; };
-            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | 
SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
-
             var url = "https://api.pwnedpasswords.com/range/"; + truncatedSha;
 
-            HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);
-            request.AutomaticDecompression = DecompressionMethods.GZip | 
DecompressionMethods.Deflate;
-            request.UserAgent = "KeePass-HIBP-plug/1.0";
+            IOConnectionInfo ioc = new IOConnectionInfo
+            {
+                Path = url
+            };
 
             try
             {
-                using (HttpWebResponse response = 
(HttpWebResponse)request.GetResponse())
+                using (Stream stream = IOConnection.OpenRead(ioc))
+                using (StreamReader reader = new StreamReader(stream))
                 {
-                    if (response.StatusCode != HttpStatusCode.OK)
-                    {
-                        Status = "HIBP API error";
-                        return;
-                    }
+                    string responseFromServer = reader.ReadToEnd();
+                    var lines = responseFromServer.Split(new[] { 
Environment.NewLine }, StringSplitOptions.None);
 
-                    using (Stream stream = response.GetResponseStream())
-                    using (StreamReader reader = new StreamReader(stream))
-                    {
-                        string responseFromServer = reader.ReadToEnd();
-                        var lines = responseFromServer.Split(new[] { 
Environment.NewLine }, StringSplitOptions.None);
+                    Status = PluginOptions.SecureText;
 
-                        Status = PluginOptions.SecureText;
+                    foreach (var line in lines)
+                    {
+                        string fullSha = truncatedSha + line;
+                        var compare = string.Compare(pwdSha, 
fullSha.Substring(0, pwdSha.Length), StringComparison.Ordinal);
 
-                        foreach (var line in lines)
+                        if (compare == 0)
                         {
-                            string fullSha = truncatedSha + line;
-                            var compare = string.Compare(pwdSha, 
fullSha.Substring(0, pwdSha.Length), StringComparison.Ordinal);
+                            var tokens = line.Split(':');
+                            Status = PluginOptions.InsecureText;
+                            insecureWarning = true;
 
-                            if (compare == 0)
+                            if (PluginOptions.BreachCountDetails)
                             {
-                                var tokens = line.Split(':');
-                                Status = PluginOptions.InsecureText;
-                                insecureWarning = true;
-
-                                if (PluginOptions.BreachCountDetails)
-                                {
-                                    Status += " (password count: " + 
tokens[1].Trim() + ")";
-                                }
-
-                                break;
+                                Status += " (password count: " + 
tokens[1].Trim() + ")";
                             }
-                        }
 
-                        reader.Close();
-                        stream.Close();
+                            break;
+                        }
                     }
+
+                    reader.Close();
+                    stream.Close();
                 }
+                
             }
             catch
             {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/HIBPOfflineCheck-1.7.6/HIBPOfflineCheck/Properties/AssemblyInfo.cs 
new/HIBPOfflineCheck-1.7.7/HIBPOfflineCheck/Properties/AssemblyInfo.cs
--- old/HIBPOfflineCheck-1.7.6/HIBPOfflineCheck/Properties/AssemblyInfo.cs      
2021-08-18 17:24:17.000000000 +0200
+++ new/HIBPOfflineCheck-1.7.7/HIBPOfflineCheck/Properties/AssemblyInfo.cs      
2022-05-18 14:45:56.000000000 +0200
@@ -32,5 +32,5 @@
 // You can specify all the values or you can default the Build and Revision 
Numbers
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.7.6.0")]
-[assembly: AssemblyFileVersion("1.7.6.0")]
+[assembly: AssemblyVersion("1.7.7.0")]
+[assembly: AssemblyFileVersion("1.7.7.0")]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HIBPOfflineCheck-1.7.6/version.txt 
new/HIBPOfflineCheck-1.7.7/version.txt
--- old/HIBPOfflineCheck-1.7.6/version.txt      2021-08-18 17:24:17.000000000 
+0200
+++ new/HIBPOfflineCheck-1.7.7/version.txt      2022-05-18 14:45:56.000000000 
+0200
@@ -1,3 +1,3 @@
 :
-HIBPOfflineCheck:1.7.6.0
+HIBPOfflineCheck:1.7.7.0
 :

Reply via email to