openbsd-ports/security/ruby-bcrypt/patches/patch-ext_mri_bcrypt_h
jcs c27d48be73 make this actually work again after the last update from pirofti
the authors changed the interfaces to the bcrypt() and
bcrypt_gensalt() routines, so rename them to avoid conflicting with
our own routines in libc
2010-01-01 20:35:34 +00:00

21 lines
838 B
Plaintext

$OpenBSD: patch-ext_mri_bcrypt_h,v 1.1 2010/01/01 20:35:34 jcs Exp $
--- ext/mri/bcrypt.h.orig Wed Dec 31 17:00:00 1969
+++ ext/mri/bcrypt.h Thu Dec 31 16:30:45 2009
@@ -51,7 +51,7 @@
* cryptographically secure random source.
* Returns: output
*/
-char *bcrypt_gensalt(char *output, uint8_t log_rounds, uint8_t *rseed);
+char *_bcrypt_gensalt(char *output, uint8_t log_rounds, uint8_t *rseed);
/*
* Given a secret and a salt, generates a salted hash (which you can then store safely).
@@ -62,6 +62,6 @@ char *bcrypt_gensalt(char *output, uint8_t log_rounds,
* salt: The salt, as generated by bcrypt_gensalt().
* Returns: output on success, NULL on error.
*/
-char *bcrypt(char *output, const char *key, const char *salt);
+char *_bcrypt(char *output, const char *key, const char *salt);
#endif /* _BCRYPT_H_ */