polarssl 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8efa7621f2b638f5301485ad2bd56b3ce108f37b
4
- data.tar.gz: 627b30c6bc49832bd90802784d143564d29e2a36
3
+ metadata.gz: ed77717091c65c231b2e35fa54889f8acf2f34bc
4
+ data.tar.gz: 7468a5a380dceec75aed070518d7d6e13b17db7e
5
5
  SHA512:
6
- metadata.gz: e621a9f926a45085231e4b8f150a9aaca1bbadaa747c457891744b48acfed0e8f994250d61401e390b5a1a7b6c949479256046b432ab872b5a33b4d72c9f8665
7
- data.tar.gz: 78a820ae270ff51f3606870d916f7c6f78d2a09fa935f725f7b9922da6f7adf6134e7c2b9c275a3664702b1964e5724ac16f652c1abbcd5ec6451d3d1433bf94
6
+ metadata.gz: ee790f767a2bacc7b4a830d205e36242c1019ef39cf4c2fdd1e0222d963df942615534bd5f749f47e1fdad41bcb2490592bad29457659188d90b1d8c1f6471da
7
+ data.tar.gz: 193bd4fea7bf9702040aa60427fa5876c6ecd258e3a4646f5451b0c8e84c765d5b1a4230768988ed444ba32796b73bb558874a7562b66dca09b9410f84a5d23a
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- `>
2
- ��=�)�{�iϢbXP��x�^�rv�V�����K%Z�CY�l��`O)����8w /��lRl M��m�����Y?�L��]��SKpbg�u9,��@#���6���"��� 7Sv;Eg-cYf]� <طk�B��WX"kJFHKA+�������].������S&�&�� *��n��u]�@�RʔM����"dX����Fq,K����:m���n�Ͷ�wg5�)��&5��3�J�H�.���7x�=� �
1
+ lU.��;�9�W��'Y�7� �����FJP��D�u�'�_p����t�jŽ��j�"`��/��]Sw3U �/U�ӏm$b&�B��(+U���j�<�@��=��]E���)����KL�gp�E��/!�%Ǫ(� �x·i�{"��˥n���Ӟϸ����o�����6d���i�Uҡ<��]}h ꁱ���+Y�Fu��7pX�=����7Hw`�����b��oȶ3��M�v� ��M�˲��auCd:��p1�%�
@@ -3,13 +3,14 @@ before_install:
3
3
 
4
4
  install:
5
5
  - bundle install
6
- - wget https://polarssl.org/download/polarssl-1.3.9-gpl.tgz
7
- - tar -xzvf polarssl-1.3.9-gpl.tgz
8
- - cd polarssl-1.3.9 && cmake -D USE_SHARED_POLARSSL_LIBRARY:BOOL=ON . && make && sudo make install
6
+ - curl -O https://tls.mbed.org/download/mbedtls-1.3.10-gpl.tgz
7
+ - tar -xzvf mbedtls-1.3.10-gpl.tgz
8
+ - cd mbedtls-1.3.10 && cmake -D USE_SHARED_MBEDTLS_LIBRARY:BOOL=ON . && make && sudo make install
9
9
 
10
10
  language: ruby
11
11
 
12
12
  rvm:
13
+ - 2.1.2
13
14
  - 2.0.0
14
15
  - 1.9.3
15
16
 
data/README.md CHANGED
@@ -6,14 +6,17 @@ PolarSSL for Ruby
6
6
 
7
7
  <table>
8
8
  <tr>
9
- <th>PolarSSL version</th>
9
+ <th>PolarSSL/mbed TLS version</th>
10
10
  <th>Gem version</th>
11
11
  </tr>
12
12
  <tr>
13
13
  <td>&lt;= 1.2.x</td><td>0.0.7</td>
14
14
  </tr>
15
15
  <tr>
16
- <td>&gt;= 1.3.x</td><td>1.x.x</td>
16
+ <td>&gt;= 1.3.0 and &lt; 1.3.10</td><td>1.0.1</td>
17
+ </tr>
18
+ <tr>
19
+ <td>&gt;= 1.3.10</td><td>1.0.2</td>
17
20
  </tr>
18
21
  </table>
19
22
 
@@ -28,14 +31,33 @@ With PolarSSL for Ruby, you can use SSL and cryptography functionality from Pola
28
31
 
29
32
  ## Installation
30
33
 
34
+ PolarSSL is cryptographically signed. To be sure the gem you install hasn't been tampered with:
35
+
36
+ Add my public key as a trusted certificate:
37
+
38
+
39
+ ```
40
+ gem cert --add <(curl -Ls https://raw.github.com/michiels/polarssl-ruby/master/certs/michiels.pem)
41
+ ```
42
+
43
+ Then install the gem:
44
+
31
45
  ```
32
- gem install polarssl
46
+ gem install polarssl -P HighSecurity
33
47
  ```
34
48
 
49
+ The `-P HighSecurity` will verify signed gems.
50
+
35
51
  Or in your Gemfile:
36
52
 
37
53
  ```
38
- gem "polarssl", "~> 1.0.0"
54
+ gem "polarssl", "~> 1.0.2"
55
+ ```
56
+
57
+ And install using:
58
+
59
+ ```
60
+ bundle install --trust-policy HighSecurity
39
61
  ```
40
62
 
41
63
  ## Usage
data/Rakefile CHANGED
@@ -34,4 +34,13 @@ Rake::ExtensionTask.new "polarssl" do |ext|
34
34
  ext.lib_dir = "lib/polarssl"
35
35
  end
36
36
 
37
- task default: :test
37
+ desc "Signs the gem"
38
+ task :sign_gem do
39
+ require 'digest/sha2'
40
+ built_gem_path = "polarssl-#{ENV["VERSION"]}.gem"
41
+ checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
42
+ checksum_path = "checksum/polarssl-#{ENV["VERSION"]}.gem.sha512"
43
+ File.open(checksum_path, 'w' ) {|f| f.write(checksum) }
44
+ end
45
+
46
+ task default: :test
@@ -0,0 +1 @@
1
+ 16f1f680d86e64df6de9651add83f111ee053ec370f4e676b1510376b9d3b02da878d2d129928e8d45522a99cdf02e543089bac55d32bd6a1ac9329b74605fca
@@ -36,11 +36,11 @@ LIB_DIRS = [
36
36
  dir_config('polarssl', HEADER_DIRS, LIB_DIRS)
37
37
 
38
38
  unless find_header('polarssl/entropy.h')
39
- abort "libpolarssl is missing. please install libpolarssl"
39
+ abort "libpolarssl or libmbedtls is missing. please install libpolarssl"
40
40
  end
41
41
 
42
- unless find_library('polarssl', 'entropy_init')
43
- abort "libpolarssl is missing. please install libpolarssl"
42
+ unless find_library('mbedtls', 'entropy_init') || find_library('polarssl', 'entropy_init')
43
+ abort "libpolarssl or libmbedtls is missing. please install libpolarssl or libmbedtls"
44
44
  end
45
45
 
46
- create_makefile('polarssl/polarssl')
46
+ create_makefile('polarssl/polarssl')
@@ -1,5 +1,5 @@
1
1
  module PolarSSL
2
2
 
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
 
5
5
  end
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
7
7
  s.name = 'polarssl'
8
8
  s.version = PolarSSL::VERSION
9
9
  s.date = Date.today
10
- s.summary = 'Use the PolarSSL cryptographic and SSL library in Ruby.'
11
- s.description = 'A gem that lets you use the PolarSSL cryptography library with Ruby.'
10
+ s.summary = 'Use the PolarSSL (now mbed TLS) cryptographic and SSL library in Ruby.'
11
+ s.description = 'A gem that lets you use the PolarSSL (now mbed TLS) cryptography library with Ruby.'
12
12
  s.authors = ['Michiel Sikkes', 'Oleksandr Iuzikov']
13
13
  s.email = 'michiel.sikkes@gmail.com'
14
14
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polarssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michiel Sikkes
@@ -31,9 +31,10 @@ cert_chain:
31
31
  +MPuiRlaQjfZy/soMMERP/wuGpw6Ce94ITJ56wjQgl3YhqQPoE76KgRu4b4YwKhx
32
32
  H7APPQD4vksmpWYDCN7llFs/nPaYM6lkxy7bcHRQxaA/km9IF+0iwbhv9mDdDQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-12-24 00:00:00.000000000 Z
34
+ date: 2015-07-27 00:00:00.000000000 Z
35
35
  dependencies: []
36
- description: A gem that lets you use the PolarSSL cryptography library with Ruby.
36
+ description: A gem that lets you use the PolarSSL (now mbed TLS) cryptography library
37
+ with Ruby.
37
38
  email: michiel.sikkes@gmail.com
38
39
  executables: []
39
40
  extensions:
@@ -51,6 +52,7 @@ files:
51
52
  - README.md
52
53
  - Rakefile
53
54
  - certs/michiels.pem
55
+ - checksum/polarssl-1.0.1.gem.sha512
54
56
  - ext/polarssl/cipher.c
55
57
  - ext/polarssl/cipher.h
56
58
  - ext/polarssl/ctr_drbg.c
@@ -96,7 +98,7 @@ rubyforge_project:
96
98
  rubygems_version: 2.2.2
97
99
  signing_key:
98
100
  specification_version: 4
99
- summary: Use the PolarSSL cryptographic and SSL library in Ruby.
101
+ summary: Use the PolarSSL (now mbed TLS) cryptographic and SSL library in Ruby.
100
102
  test_files:
101
103
  - test/cipher_encryption_test.rb
102
104
  - test/ctr_drbg_test.rb
metadata.gz.sig CHANGED
Binary file