commit f692385ab5cf59ce9638a487d7539cd28179a471
parent c4e9156b71c9056587a20469c7e3fa91448c7096
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 30 Apr 2019 19:39:56 +0200
add isCompiledWithCurrentLisheepyVersion
Diffstat:
3 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/bcrypt.c b/bcrypt.c
@@ -233,3 +233,8 @@ int bcryptCheck(const char *passwd, char hash[BCRYPT_HASHSIZE], bcryptCheckCallb
return r;
}
+
+bool checkLibsheepyVersionBcrypt(const char *currentLibsheepyVersion) {
+ return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION);
+}
+
diff --git a/bcrypt.h b/bcrypt.h
@@ -97,3 +97,6 @@ int bcryptCheck(const char *passwd, char hash[BCRYPT_HASHSIZE], bcryptCheckCallb
#endif
+
+#define isBcryptCompiledWithCurrentLisheepyVersion checkLibsheepyVersionBcrypt(LIBSHEEPY_VERSION)
+bool checkLibsheepyVersionBcrypt(const char *currentLibsheepyVersion);
diff --git a/package.yml b/package.yml
@@ -1,16 +1,16 @@
---
name: bcrypt
- version: 0.0.2
- description: "bcrypt hash function"
+ version: 0.0.3
+ description: bcrypt hash function
bin: ./bcrypt.c
- cflags: -O2 -std=gnu11 -fPIC -pipe
+ cflags: "-O2 -std=gnu11 -fPIC -pipe"
repository:
type: git
- url: git+https://github.com/RemyNoulin/bcrypt.git
+ url: "git+https://github.com/RemyNoulin/bcrypt.git"
keywords:
- - security
+ - security
author: Remy Noulin
license: MIT
bugs:
- url: https://github.com/RemyNoulin/bcrypt/issues
- homepage: https://github.com/RemyNoulin/bcrypt#readme
+ url: "https://github.com/RemyNoulin/bcrypt/issues"
+ homepage: "https://github.com/RemyNoulin/bcrypt#readme"