openssl_rsa_pss_verify 0.1.5 → 0.1.6

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: 8088eac905ea9588ec02a16d2b82771b480e472a
4
- data.tar.gz: 8cb1ee01dbdbd697d81b0687dd932ac2e4afeac2
3
+ metadata.gz: 6c58b108ec48929abb1135b1349bff9b6e98b0c0
4
+ data.tar.gz: 72d30ebba65d423d45474401620ef51888a5eb25
5
5
  SHA512:
6
- metadata.gz: b4fd09a916f79378971b5d5ab2be68b3b2cfdaa75bf3abd061625a9de32358191a0d0fbd4e63ae1b43a79c5be4416d21c403d9c9735d391bfb575812c6174676
7
- data.tar.gz: b0c2209f1470a14595a42415b72fa4cb48835ca810d4793fe5acc36f9a04d94898d42051a46930bc3c978a3f68a8858c0e3675c68ad2ea8803a12755a39e1ff5
6
+ metadata.gz: 7da90308d6908f5a29562a78afd741e0a1da40e6425b9b89a813b19350428f157dec9641c357a1acd31935ff5fbc65cc6504835b18c9ada461589fc572bf91ee
7
+ data.tar.gz: 27cc549535293e4dbf7cf61e10f9c73acadbc89b471dfa557b6052e92f15054eff3475e6934ed45af1eb59e172f81f06d2881d63e3824729a6e3fc850cdcd9cc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openssl_rsa_pss_verify (0.1.5)
4
+ openssl_rsa_pss_verify (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -35,7 +35,7 @@ enum ORPV_errors {
35
35
  };
36
36
 
37
37
  static void bind_err_strs(char * strs, int max) {
38
- int i;
38
+ int err_cnt;
39
39
  char last_err[OSSL_ERR_STR_LEN];
40
40
 
41
41
  if (! ERR_peek_error()) {
@@ -43,20 +43,21 @@ static void bind_err_strs(char * strs, int max) {
43
43
  return;
44
44
  }
45
45
 
46
- for(i = 0; ERR_peek_error() && i < max - 1; ++i) {
47
- strncat(strs, ERR_error_string(ERR_get_error(), NULL), OSSL_ERR_STR_LEN);
46
+ strncat(strs, ERR_error_string(ERR_get_error(), NULL), OSSL_ERR_STR_LEN);
47
+ for(err_cnt = 1; ERR_peek_error() && err_cnt < (max-1); ++err_cnt) {
48
48
  strcat(strs, "\n");
49
+ strncat(strs, ERR_error_string(ERR_get_error(), NULL), OSSL_ERR_STR_LEN);
49
50
  }
50
51
 
51
- if (i == (max-1) && ERR_peek_error()) {
52
- snprintf(last_err, OSSL_ERR_STR_LEN, "\n%s", ERR_error_string(ERR_get_error(), NULL));
52
+ if (err_cnt == (max-1) && ERR_peek_error()) {
53
+ ERR_error_string_n(ERR_get_error(), last_err, OSSL_ERR_STR_LEN);
54
+ ++err_cnt;
53
55
 
54
56
  if (ERR_peek_error()) {
55
- // Still yet another error past max
56
- ++i;
57
- while(ERR_get_error()) ++i;
58
- snprintf(last_err, OSSL_ERR_STR_LEN, "\n[%i additional errors truncated]", i);
57
+ while(ERR_get_error()) ++err_cnt;
58
+ snprintf(last_err, OSSL_ERR_STR_LEN, "[%i additional errors truncated]", err_cnt);
59
59
  }
60
+ strcat(strs, "\n");
60
61
  strncat(strs, last_err, OSSL_ERR_STR_LEN);
61
62
  }
62
63
  }
@@ -1,3 +1,3 @@
1
1
  module OpenSSL_RSA_PSS_Verify
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openssl_rsa_pss_verify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Distad