projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a87f50f
)
nCipher callbacks shall return 0 on success, something else otherwise.
author
Richard Levitte
<levitte@openssl.org>
Fri, 1 Jun 2001 15:29:32 +0000
(15:29 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Fri, 1 Jun 2001 15:29:32 +0000
(15:29 +0000)
crypto/engine/hw_ncipher.c
patch
|
blob
|
history
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)
- return
0
;
- return
1
;
+ return
-1
;
+ return
0
;
}
static int hwcrhk_mutex_lock(HWCryptoHook_Mutex *mt)
{
CRYPTO_w_lock(mt->lockid);
- return
1
;
+ return
0
;
}
void hwcrhk_mutex_unlock(HWCryptoHook_Mutex * mt)