@@ -175,15 +175,17 @@ typedef void (*DFUNC)(void);
175175int wolfssl_prov_is_running (void );
176176WC_RNG * wolfssl_prov_get_rng (WOLFPROV_CTX * provctx );
177177
178+ int wp_lock (wolfSSL_Mutex * mutex );
179+ int wp_unlock (wolfSSL_Mutex * mutex );
180+
178181/* Internal RSA types and functions. */
179182typedef struct wp_Rsa wp_Rsa ;
180183
181184int wp_rsa_up_ref (wp_Rsa * rsa );
182185void wp_rsa_free (wp_Rsa * rsa );
183186int wp_rsa_get_type (wp_Rsa * rsa );
184187int wp_rsa_get_bits (wp_Rsa * rsa );
185- int wp_rsa_lock (wp_Rsa * rsa );
186- int wp_rsa_unlock (wp_Rsa * rsa );
188+ wolfSSL_Mutex * wp_rsa_get_mutex (wp_Rsa * rsa );
187189RsaKey * wp_rsa_get_key (wp_Rsa * rsa );
188190void wp_rsa_get_pss_mds (wp_Rsa * rsa , char * * mdName , char * * mgfMdName );
189191int wp_rsa_get_pss_salt_len (wp_Rsa * rsa );
@@ -201,17 +203,15 @@ ecc_key* wp_ecc_get_key(wp_Ecc* ecc);
201203WC_RNG * wp_ecc_get_rng (wp_Ecc * ecc );
202204int wp_ecc_get_size (wp_Ecc * ecc );
203205int wp_ecc_check_usage (wp_Ecc * ecc );
204- int wp_ecc_lock (wp_Ecc * ecc );
205- int wp_ecc_unlock (wp_Ecc * ecc );
206+ wolfSSL_Mutex * wp_ecc_get_mutex (wp_Ecc * ecc );
206207
207208/* Internal ECX types and functions. */
208209typedef struct wp_Ecx wp_Ecx ;
209210
210211int wp_ecx_up_ref (wp_Ecx * ecx );
211212void wp_ecx_free (wp_Ecx * ecx );
212213void * wp_ecx_get_key (wp_Ecx * ecx );
213- int wp_ecx_lock (wp_Ecx * ecx );
214- int wp_ecx_unlock (wp_Ecx * ecx );
214+ wolfSSL_Mutex * wp_ecx_get_mutex (wp_Ecx * ecx );
215215
216216/* Internal DH types and functions. */
217217typedef struct wp_Dh wp_Dh ;
0 commit comments