diff options
author | Richard Levitte <levitte@openssl.org> | 2001-06-01 15:29:32 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-06-01 15:29:32 +0000 |
commit | 397211323cb5c631af09f302290b47c5cd441993 (patch) | |
tree | f6a28993a057ae995c92aa57604963161da870ab /crypto | |
parent | a87f50fb5a6e1cdfccebba2c3cab9ca6eae2ba26 (diff) |
nCipher callbacks shall return 0 on success, something else otherwise.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/engine/hw_ncipher.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index b614b6e202..2879a10a68 100644 --- 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) |