Commit 43d6702d authored by FdaSilvaYY's avatar FdaSilvaYY Committed by Rich Salz
Browse files

fix code indentation issue



... related to engine_ref_debug macro.

Signed-off-by: default avatarRich Salz <rsalz@akamai.com>
Reviewed-by: default avatarKurt Roeckx <kurt@openssl.org>
parent b5c5a971
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -75,8 +75,8 @@ int engine_unlocked_init(ENGINE *e)
         */
        e->struct_ref++;
        e->funct_ref++;
        engine_ref_debug(e, 0, 1)
            engine_ref_debug(e, 1, 1)
        engine_ref_debug(e, 0, 1);
        engine_ref_debug(e, 1, 1);
    }
    return to_return;
}
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ extern "C" {
                (unsigned int)(e), (isfunct ? "funct" : "struct"), \
                ((isfunct) ? ((e)->funct_ref - (diff)) : ((e)->struct_ref - (diff))), \
                ((isfunct) ? (e)->funct_ref : (e)->struct_ref), \
                (__FILE__), (__LINE__));
                (__FILE__), (__LINE__))

# else

+2 −2
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ ENGINE *ENGINE_new(void)
        return NULL;
    }
    ret->struct_ref = 1;
    engine_ref_debug(ret, 0, 1)
    engine_ref_debug(ret, 0, 1);
    CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ENGINE, ret, &ret->ex_data);
    return ret;
}
+8 −8
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ static int engine_list_add(ENGINE *e)
     * Having the engine in the list assumes a structural reference.
     */
    e->struct_ref++;
    engine_ref_debug(e, 0, 1)
    engine_ref_debug(e, 0, 1);
    /* However it came to be, e is the last item in the list. */
    engine_list_tail = e;
    e->next = NULL;
@@ -188,7 +188,7 @@ ENGINE *ENGINE_get_first(void)
    ret = engine_list_head;
    if (ret) {
        ret->struct_ref++;
        engine_ref_debug(ret, 0, 1)
        engine_ref_debug(ret, 0, 1);
    }
    CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
    return ret;
@@ -202,7 +202,7 @@ ENGINE *ENGINE_get_last(void)
    ret = engine_list_tail;
    if (ret) {
        ret->struct_ref++;
        engine_ref_debug(ret, 0, 1)
        engine_ref_debug(ret, 0, 1);
    }
    CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
    return ret;
@@ -221,7 +221,7 @@ ENGINE *ENGINE_get_next(ENGINE *e)
    if (ret) {
        /* Return a valid structural refernce to the next ENGINE */
        ret->struct_ref++;
        engine_ref_debug(ret, 0, 1)
        engine_ref_debug(ret, 0, 1);
    }
    CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
    /* Release the structural reference to the previous ENGINE */
@@ -241,7 +241,7 @@ ENGINE *ENGINE_get_prev(ENGINE *e)
    if (ret) {
        /* Return a valid structural reference to the next ENGINE */
        ret->struct_ref++;
        engine_ref_debug(ret, 0, 1)
        engine_ref_debug(ret, 0, 1);
    }
    CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
    /* Release the structural reference to the previous ENGINE */
@@ -346,7 +346,7 @@ ENGINE *ENGINE_by_id(const char *id)
            }
        } else {
            iterator->struct_ref++;
            engine_ref_debug(iterator, 0, 1)
            engine_ref_debug(iterator, 0, 1);
        }
    }
    CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ const EVP_PKEY_ASN1_METHOD *ENGINE_pkey_asn1_find_str(ENGINE **pe,
    /* If found obtain a structural reference to engine */
    if (fstr.e) {
        fstr.e->struct_ref++;
        engine_ref_debug(fstr.e, 0, 1)
        engine_ref_debug(fstr.e, 0, 1);
    }
    *pe = fstr.e;
    CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);