New function RSA_check_key,
[oweals/openssl.git] / crypto / cryptlib.c
index d6015096387dc7b6e1d1a67446e4e2e1b35e0158..d70a570dcee1f72f42943ada2ea6c03989aabd3d 100644 (file)
@@ -89,10 +89,12 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
        "rand",
        "debug_malloc",
        "BIO",
-       "bio_gethostbyname",
+       "gethostbyname",
+       "getservbyname",
+       "readdir",
        "RSA_blinding",
-#if CRYPTO_NUM_LOCKS != 22
-# error "Inconsistency between crypto.h and cryptlic.c"
+#if CRYPTO_NUM_LOCKS != 24
+# error "Inconsistency between crypto.h and cryptlib.c"
 #endif
        };
 
@@ -131,6 +133,11 @@ int CRYPTO_get_new_lockid(char *name)
        return(i);
        }
 
+int CRYPTO_num_locks(void)
+       {
+       return CRYPTO_NUM_LOCKS;
+       }
+
 void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file,
                int line)
        {