summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-10-19 17:03:10 +0000
committerjperkin <jperkin@pkgsrc.org>2018-10-19 17:03:10 +0000
commitcb83d3db1963d5bc91f395a777982ac856a58cac (patch)
treeb6311956036e6c7f3a1b0eca45a1e7cbac640eab /security
parentaa0557619181dd34a3327514aafade92d9ed1c09 (diff)
downloadpkgsrc-cb83d3db1963d5bc91f395a777982ac856a58cac.tar.gz
security/ruby-bcrypt_pbkdf: Add u_int*_t compat.
Diffstat (limited to 'security')
-rw-r--r--security/ruby-bcrypt_pbkdf/distinfo3
-rw-r--r--security/ruby-bcrypt_pbkdf/patches/patch-ext_mri_blf.h23
2 files changed, 25 insertions, 1 deletions
diff --git a/security/ruby-bcrypt_pbkdf/distinfo b/security/ruby-bcrypt_pbkdf/distinfo
index 1313e75576a..6a54cceb159 100644
--- a/security/ruby-bcrypt_pbkdf/distinfo
+++ b/security/ruby-bcrypt_pbkdf/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/10/16 17:04:11 minskim Exp $
+$NetBSD: distinfo,v 1.2 2018/10/19 17:03:10 jperkin Exp $
SHA1 (bcrypt_pbkdf-1.0.0.gem) = 224ee06a25e7a2f1ca02c59c76be8d9405464ff7
RMD160 (bcrypt_pbkdf-1.0.0.gem) = 3cd26326a2b6ae2c7d3f0fe486576e24e071ba56
SHA512 (bcrypt_pbkdf-1.0.0.gem) = b582407617633f5277cde9251ed1fd2ca408ae8bd19cc73f107d7932bed38061dc0099d3033ff5def1b586507392c33d8c50815fb156322f0dd08fbbe4a8e967
Size (bcrypt_pbkdf-1.0.0.gem) = 24576 bytes
+SHA1 (patch-ext_mri_blf.h) = add75b3700ea21554a739a544e9085fc131f7fda
diff --git a/security/ruby-bcrypt_pbkdf/patches/patch-ext_mri_blf.h b/security/ruby-bcrypt_pbkdf/patches/patch-ext_mri_blf.h
new file mode 100644
index 00000000000..307e6d5f61c
--- /dev/null
+++ b/security/ruby-bcrypt_pbkdf/patches/patch-ext_mri_blf.h
@@ -0,0 +1,23 @@
+$NetBSD: patch-ext_mri_blf.h,v 1.1 2018/10/19 17:03:10 jperkin Exp $
+
+u_int*_t compat.
+
+--- ext/mri/blf.h.orig 2018-10-19 17:00:01.930246543 +0000
++++ ext/mri/blf.h
+@@ -49,6 +49,16 @@
+ #define BLF_MAXKEYLEN ((BLF_N-2)*4) /* 448 bits */
+ #define BLF_MAXUTILIZED ((BLF_N+2)*4) /* 576 bits */
+
++#ifndef u_int8_t
++#define u_int8_t uint8_t
++#endif
++#ifndef u_int16_t
++#define u_int16_t uint16_t
++#endif
++#ifndef u_int32_t
++#define u_int32_t uint32_t
++#endif
++
+ /* Blowfish context */
+ typedef struct BlowfishContext {
+ u_int32_t S[4][256]; /* S-Boxes */