Skip to content

Commit bfca39a

Browse files
committed
src/ssl.c, src/ssl_sess.c, src/x509.c, wolfssl/internal.h: rename wolfssl_get_ex_new_index() to wolfssl_local_get_ex_new_index().
1 parent d8085cc commit bfca39a

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/ssl.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15086,7 +15086,7 @@ void crypto_ex_cb_free_data(void *obj, CRYPTO_EX_cb_ctx* cb_ctx,
1508615086
}
1508715087

1508815088
/**
15089-
* get_ex_new_index is a helper function for the following
15089+
* wolfssl_local_get_ex_new_index is a helper function for the following
1509015090
* xx_get_ex_new_index functions:
1509115091
* - wolfSSL_CRYPTO_get_ex_new_index
1509215092
* - wolfSSL_CTX_get_ex_new_index
@@ -15095,7 +15095,7 @@ void crypto_ex_cb_free_data(void *obj, CRYPTO_EX_cb_ctx* cb_ctx,
1509515095
* Returns an index number greater or equal to zero on success,
1509615096
* -1 on failure.
1509715097
*/
15098-
int wolfssl_get_ex_new_index(int class_index, long ctx_l, void* ctx_ptr,
15098+
int wolfssl_local_get_ex_new_index(int class_index, long ctx_l, void* ctx_ptr,
1509915099
WOLFSSL_CRYPTO_EX_new* new_func, WOLFSSL_CRYPTO_EX_dup* dup_func,
1510015100
WOLFSSL_CRYPTO_EX_free* free_func)
1510115101
{
@@ -15161,8 +15161,8 @@ int wolfSSL_CTX_get_ex_new_index(long idx, void* arg,
1516115161

1516215162
WOLFSSL_ENTER("wolfSSL_CTX_get_ex_new_index");
1516315163

15164-
return wolfssl_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_SSL_CTX, idx, arg,
15165-
new_func, dup_func, free_func);
15164+
return wolfssl_local_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_SSL_CTX, idx,
15165+
arg, new_func, dup_func, free_func);
1516615166
}
1516715167

1516815168
/* Return the index that can be used for the WOLFSSL structure to store
@@ -15175,8 +15175,8 @@ int wolfSSL_get_ex_new_index(long argValue, void* arg,
1517515175
{
1517615176
WOLFSSL_ENTER("wolfSSL_get_ex_new_index");
1517715177

15178-
return wolfssl_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_SSL, argValue, arg,
15179-
cb1, cb2, cb3);
15178+
return wolfssl_local_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_SSL, argValue,
15179+
arg, cb1, cb2, cb3);
1518015180
}
1518115181
#endif /* HAVE_EX_DATA_CRYPTO */
1518215182

@@ -19170,7 +19170,7 @@ int wolfSSL_CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,
1917019170
{
1917119171
WOLFSSL_ENTER("wolfSSL_CRYPTO_get_ex_new_index");
1917219172

19173-
return wolfssl_get_ex_new_index(class_index, argl, argp, new_func,
19173+
return wolfssl_local_get_ex_new_index(class_index, argl, argp, new_func,
1917419174
dup_func, free_func);
1917519175
}
1917619176
#endif /* HAVE_EX_DATA_CRYPTO */

src/ssl_sess.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4366,8 +4366,8 @@ int wolfSSL_SESSION_get_ex_new_index(long ctx_l,void* ctx_ptr,
43664366
WOLFSSL_CRYPTO_EX_free* free_func)
43674367
{
43684368
WOLFSSL_ENTER("wolfSSL_SESSION_get_ex_new_index");
4369-
return wolfssl_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_SSL_SESSION, ctx_l,
4370-
ctx_ptr, new_func, dup_func, free_func);
4369+
return wolfssl_local_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_SSL_SESSION,
4370+
ctx_l, ctx_ptr, new_func, dup_func, free_func);
43714371
}
43724372
#endif /* HAVE_EX_DATA_CRYPTO */
43734373
#endif /* HAVE_EX_DATA */

src/x509.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15463,7 +15463,7 @@ int wolfSSL_X509_get_ex_new_index(int idx, void *arg,
1546315463
{
1546415464
WOLFSSL_ENTER("wolfSSL_X509_get_ex_new_index");
1546515465

15466-
return wolfssl_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_X509, idx, arg,
15466+
return wolfssl_local_get_ex_new_index(WOLF_CRYPTO_EX_INDEX_X509, idx, arg,
1546715467
new_func, dup_func, free_func);
1546815468
}
1546915469
#endif

wolfssl/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7336,7 +7336,7 @@ WOLFSSL_LOCAL void crypto_ex_cb_free_data(void *obj, CRYPTO_EX_cb_ctx* cb_ctx,
73367336
WOLFSSL_CRYPTO_EX_DATA* ex_data);
73377337
WOLFSSL_LOCAL int crypto_ex_cb_dup_data(const WOLFSSL_CRYPTO_EX_DATA *in,
73387338
WOLFSSL_CRYPTO_EX_DATA *out, CRYPTO_EX_cb_ctx* cb_ctx);
7339-
WOLFSSL_LOCAL int wolfssl_get_ex_new_index(int class_index, long ctx_l,
7339+
WOLFSSL_LOCAL int wolfssl_local_get_ex_new_index(int class_index, long ctx_l,
73407340
void* ctx_ptr, WOLFSSL_CRYPTO_EX_new* new_func,
73417341
WOLFSSL_CRYPTO_EX_dup* dup_func, WOLFSSL_CRYPTO_EX_free* free_func);
73427342
#endif /* HAVE_EX_DATA_CRYPTO */

0 commit comments

Comments
 (0)