net-smtp-ntlm 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce835096d258af930fc3a8bbea0f30751c91c734cb900c7dea399f17c23230b3
4
- data.tar.gz: 7bc58f9680c6b5c5ad2995fcf793f99be819b1b17d7b569f3d968aaf29f08693
3
+ metadata.gz: 1bc9acb6b897abf5a907f3f0df1f6ab2df4b7bf2863f1d3517d05a680659c513
4
+ data.tar.gz: 29bf5d0ce6b643dca5759cf2900bf3ca27fc888ae394046bc7b1fc67203cf774
5
5
  SHA512:
6
- metadata.gz: a3587cced6b74a95f84ac44a9653d4dcd69a4a743278ba16e707738aae875a48f70f62994b29e4da689779f16e8e5c55800aa887d65c66b7371221371f9e3639
7
- data.tar.gz: d299b436f46e4afb903e286295a709c1ad776794a0c77fe66bf827b1a7e1aa207abfa50b911c90d0c220a28d2053905cfd25e9ee781fbc378fd3a3fc08dd0422
6
+ metadata.gz: 6ecf5d1d911e36ee152b152ae45b3517eabaab0283fd146abe036d20af17434e1de7bb9231f60ef019628927a46f6efb30c25404e43e1b963741c3a61e1d9b22
7
+ data.tar.gz: 0aa108c64e0778aff9ad06e41f13c8afa1f6fdf6ce40e5b9f7178ecddf9d53c6f89fcd4ab9230ac4775cd1362c70ae14bfae70af03c3042453dfe24eb47aaaba
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.0.2
2
+
3
+ - [FIX] Указание верного алгоритма шифрования и добавление раздела с решением проблем в README
4
+
1
5
  ### 0.0.1
2
6
 
3
7
  - Базовая версия с поддержкой NTLM для SMTP
data/README.md CHANGED
@@ -22,6 +22,42 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
+ Add to the end of `application.rb`
26
+
27
+ require 'net/smtp/ntlm'
28
+
29
+ ## Troubleshooting
30
+
31
+ if you get an exception
32
+
33
+ Digest initialization failed: initialization error (OpenSSL::Digest::DigestError)
34
+
35
+ or
36
+
37
+ unsupported (OpenSSL::Cipher::CipherError)
38
+
39
+ or same, this could mean you try use legacy algorithm with OpenSSL 3.x. The problem can be solved in the way @rhenium described [here](https://github.com/ruby/openssl/issues/500#issuecomment-1100660910). The following is a quote.
40
+
41
+ In OpenSSL 3.0, these algorithms belong to the OpenSSL legacy provider. The legacy provider is not enabled by default in a fresh installation of OpenSSL 3.0 and has to be enabled using openssl.cnf.
42
+
43
+ https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html
44
+
45
+ ```
46
+ [provider_sect]
47
+ default = default_sect
48
+ legacy = legacy_sect
49
+
50
+ [default_sect]
51
+ activate = 1
52
+
53
+ [legacy_sect]
54
+ activate = 1
55
+ ```
56
+
57
+ It could also be programmatically by using "propquery" string of EVP_PKEY_CTX_new_from_name(), but this is currently not available through ruby/openssl.
58
+
59
+
60
+
25
61
  ## Contributing
26
62
 
27
- Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/net-smtp.
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/net-smtp.
@@ -52,7 +52,7 @@ module Net::SMTP::NTLM
52
52
  keys = create_des_keys(key[0, key_length])
53
53
 
54
54
  result = ''
55
- cipher = OpenSSL::Cipher::DES.new
55
+ cipher = OpenSSL::Cipher.new('des-ecb')
56
56
  keys.each do |k|
57
57
  cipher.encrypt
58
58
  cipher.key = k
@@ -1,5 +1,5 @@
1
1
  require 'net/smtp'
2
2
 
3
3
  module Net::SMTP::NTLM
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-smtp-ntlm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fedosov Sergey (RnD Soft)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date:
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-smtp
@@ -58,14 +58,14 @@ executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
- - README.md
62
61
  - CHANGELOG.md
63
- - net-smtp-ntlm.gemspec
62
+ - README.md
63
+ - lib/net/smtp/ntlm.rb
64
64
  - lib/net/smtp/ntlm/auth_ntlm.rb
65
65
  - lib/net/smtp/ntlm/message.rb
66
66
  - lib/net/smtp/ntlm/util.rb
67
67
  - lib/net/smtp/ntlm/version.rb
68
- - lib/net/smtp/ntlm.rb
68
+ - net-smtp-ntlm.gemspec
69
69
  homepage: https://rnds.pro
70
70
  licenses: []
71
71
  metadata: {}