nCipher callbacks shall return 0 on success, something else otherwise.
authorRichard Levitte <levitte@openssl.org>
Fri, 1 Jun 2001 15:29:32 +0000 (15:29 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 1 Jun 2001 15:29:32 +0000 (15:29 +0000)
crypto/engine/hw_ncipher.c

index b614b6e20203c38ac64535949353fe83bd69fb20..2879a10a68699f29b9b6fa83c10bf505975f44bf 100644 (file)
@@ -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)