git ssb

0+

dangerousbeans / %aPBe2k3ugtjBr4rrsU1…



Commit 62fc1729c7b2f9ad485afb1f4b948b89dad341b6

Committing actual results of testing on Solaris.

git-svn-id: http://bcrypt-ruby.rubyforge.org/svn/trunk@36 b1e0f299-433e-4bb3-9895-84128a6cfb6a
codahale committed on 6/7/2007, 9:40:10 PM
Parent: 74ca7141594d4c182232f642ec2a683aeeb3788e

Files changed

ext/bcrypt.cchanged
ext/bcrypt_ext.cchanged
ext/blf.hchanged
ext/bcrypt.cView
@@ -60,18 +60,8 @@
6060 #include <stdio.h>
6161 #include <stdlib.h>
6262 #include <sys/types.h>
6363 #include <string.h>
64-
65-/* Add this type so we'll compile nicely on Solaris.
66- Thanks to Jeremy LaTrasse and the Twitter crew. */
67-#ifdef __sun
68- #define u_int8_t uint8_t
69- #define u_int16_t uint16_t
70- #define u_int32_t uint32_t
71- #define u_int64_t uint64_t
72-#endif
73-
7464 #include "blf.h"
7565
7666 /* This implementation is adaptable to current computing power.
7767 * You can have up to 2^31 rounds which should be enough for some
ext/bcrypt_ext.cView
@@ -1,5 +1,6 @@
11 #include "ruby.h"
2+#include "blf.h"
23
34 char *bcrypt_gensalt(u_int8_t, u_int8_t *);
45 char *bcrypt(const char *, const char *);
56
ext/blf.hView
@@ -30,8 +30,17 @@
3030 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3131 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232 */
3333
34+/* Add this type so we'll compile nicely on Solaris.
35+ Thanks to Jeremy LaTrasse and the Twitter crew. */
36+#ifdef __sun
37+ #define u_int8_t uint8_t
38+ #define u_int16_t uint16_t
39+ #define u_int32_t uint32_t
40+ #define u_int64_t uint64_t
41+#endif
42+
3443 #ifndef _BLF_H_
3544 #define _BLF_H_
3645
3746 // Imported from pwd.h. <coda.hale@gmail.com>

Built with git-ssb-web