projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nCipher callbacks shall return 0 on success, something else otherwise.
[openssl.git]
/
crypto
/
engine
/
hw_ncipher.c
diff --git
a/crypto/engine/hw_ncipher.c
b/crypto/engine/hw_ncipher.c
index b614b6e20203c38ac64535949353fe83bd69fb20..2879a10a68699f29b9b6fa83c10bf505975f44bf 100644
(file)
--- a/
crypto/engine/hw_ncipher.c
+++ b/
crypto/engine/hw_ncipher.c
@@
-1059,14
+1059,14
@@
static int hwcrhk_mutex_init(HWCryptoHook_Mutex* mt,
{
mt->lockid = CRYPTO_get_new_dynlockid();
if (mt->lockid == 0)
{
mt->lockid = CRYPTO_get_new_dynlockid();
if (mt->lockid == 0)
- return
0
;
- return
1
;
+ return
-1
;
+ return
0
;
}
static int hwcrhk_mutex_lock(HWCryptoHook_Mutex *mt)
{
CRYPTO_w_lock(mt->lockid);
}
static int hwcrhk_mutex_lock(HWCryptoHook_Mutex *mt)
{
CRYPTO_w_lock(mt->lockid);
- return
1
;
+ return
0
;
}
void hwcrhk_mutex_unlock(HWCryptoHook_Mutex * mt)
}
void hwcrhk_mutex_unlock(HWCryptoHook_Mutex * mt)