fix code indentation issue
... related to engine_ref_debug macro. Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
parent
b5c5a97141
commit
43d6702de9
@ -75,8 +75,8 @@ int engine_unlocked_init(ENGINE *e)
|
|||||||
*/
|
*/
|
||||||
e->struct_ref++;
|
e->struct_ref++;
|
||||||
e->funct_ref++;
|
e->funct_ref++;
|
||||||
engine_ref_debug(e, 0, 1)
|
engine_ref_debug(e, 0, 1);
|
||||||
engine_ref_debug(e, 1, 1)
|
engine_ref_debug(e, 1, 1);
|
||||||
}
|
}
|
||||||
return to_return;
|
return to_return;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ extern "C" {
|
|||||||
(unsigned int)(e), (isfunct ? "funct" : "struct"), \
|
(unsigned int)(e), (isfunct ? "funct" : "struct"), \
|
||||||
((isfunct) ? ((e)->funct_ref - (diff)) : ((e)->struct_ref - (diff))), \
|
((isfunct) ? ((e)->funct_ref - (diff)) : ((e)->struct_ref - (diff))), \
|
||||||
((isfunct) ? (e)->funct_ref : (e)->struct_ref), \
|
((isfunct) ? (e)->funct_ref : (e)->struct_ref), \
|
||||||
(__FILE__), (__LINE__));
|
(__FILE__), (__LINE__))
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ ENGINE *ENGINE_new(void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
ret->struct_ref = 1;
|
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);
|
CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ENGINE, ret, &ret->ex_data);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,9 +141,9 @@ static int engine_list_add(ENGINE *e)
|
|||||||
* Having the engine in the list assumes a structural reference.
|
* Having the engine in the list assumes a structural reference.
|
||||||
*/
|
*/
|
||||||
e->struct_ref++;
|
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. */
|
/* However it came to be, e is the last item in the list. */
|
||||||
engine_list_tail = e;
|
engine_list_tail = e;
|
||||||
e->next = NULL;
|
e->next = NULL;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@ ENGINE *ENGINE_get_first(void)
|
|||||||
ret = engine_list_head;
|
ret = engine_list_head;
|
||||||
if (ret) {
|
if (ret) {
|
||||||
ret->struct_ref++;
|
ret->struct_ref++;
|
||||||
engine_ref_debug(ret, 0, 1)
|
engine_ref_debug(ret, 0, 1);
|
||||||
}
|
}
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
||||||
return ret;
|
return ret;
|
||||||
@ -202,7 +202,7 @@ ENGINE *ENGINE_get_last(void)
|
|||||||
ret = engine_list_tail;
|
ret = engine_list_tail;
|
||||||
if (ret) {
|
if (ret) {
|
||||||
ret->struct_ref++;
|
ret->struct_ref++;
|
||||||
engine_ref_debug(ret, 0, 1)
|
engine_ref_debug(ret, 0, 1);
|
||||||
}
|
}
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
||||||
return ret;
|
return ret;
|
||||||
@ -221,7 +221,7 @@ ENGINE *ENGINE_get_next(ENGINE *e)
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
/* Return a valid structural refernce to the next ENGINE */
|
/* Return a valid structural refernce to the next ENGINE */
|
||||||
ret->struct_ref++;
|
ret->struct_ref++;
|
||||||
engine_ref_debug(ret, 0, 1)
|
engine_ref_debug(ret, 0, 1);
|
||||||
}
|
}
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
||||||
/* Release the structural reference to the previous ENGINE */
|
/* Release the structural reference to the previous ENGINE */
|
||||||
@ -241,7 +241,7 @@ ENGINE *ENGINE_get_prev(ENGINE *e)
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
/* Return a valid structural reference to the next ENGINE */
|
/* Return a valid structural reference to the next ENGINE */
|
||||||
ret->struct_ref++;
|
ret->struct_ref++;
|
||||||
engine_ref_debug(ret, 0, 1)
|
engine_ref_debug(ret, 0, 1);
|
||||||
}
|
}
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
||||||
/* Release the structural reference to the previous ENGINE */
|
/* Release the structural reference to the previous ENGINE */
|
||||||
@ -346,7 +346,7 @@ ENGINE *ENGINE_by_id(const char *id)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
iterator->struct_ref++;
|
iterator->struct_ref++;
|
||||||
engine_ref_debug(iterator, 0, 1)
|
engine_ref_debug(iterator, 0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
||||||
|
@ -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 found obtain a structural reference to engine */
|
||||||
if (fstr.e) {
|
if (fstr.e) {
|
||||||
fstr.e->struct_ref++;
|
fstr.e->struct_ref++;
|
||||||
engine_ref_debug(fstr.e, 0, 1)
|
engine_ref_debug(fstr.e, 0, 1);
|
||||||
}
|
}
|
||||||
*pe = fstr.e;
|
*pe = fstr.e;
|
||||||
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user