Lines Matching defs:find_lock
165 pthread_mutex_t *find_lock[OP_MAX] = { NULL };
807 find_lock[OP_RSA] = OPENSSL_malloc(sizeof (pthread_mutex_t));
808 if (find_lock[OP_RSA] == NULL)
810 (void) pthread_mutex_init(find_lock[OP_RSA], NULL);
814 find_lock[OP_DSA] = OPENSSL_malloc(sizeof (pthread_mutex_t));
815 if (find_lock[OP_DSA] == NULL)
817 (void) pthread_mutex_init(find_lock[OP_DSA], NULL);
821 find_lock[OP_DH] = OPENSSL_malloc(sizeof (pthread_mutex_t));
822 if (find_lock[OP_DH] == NULL)
824 (void) pthread_mutex_init(find_lock[OP_DH], NULL);
849 if (find_lock[OP_RSA] != NULL)
851 (void) pthread_mutex_destroy(find_lock[OP_RSA]);
852 OPENSSL_free(find_lock[OP_RSA]);
853 find_lock[OP_RSA] = NULL;
857 if (find_lock[OP_DSA] != NULL)
859 (void) pthread_mutex_destroy(find_lock[OP_DSA]);
860 OPENSSL_free(find_lock[OP_DSA]);
861 find_lock[OP_DSA] = NULL;
865 if (find_lock[OP_DH] != NULL)
867 (void) pthread_mutex_destroy(find_lock[OP_DH]);
868 OPENSSL_free(find_lock[OP_DH]);
869 find_lock[OP_DH] = NULL;