@@ -3765,14 +3765,18 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
37653765 const unsigned char * in , long sz , int format );
37663766 WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_buffer (WOLFSSL_CTX * ctx ,
37673767 const unsigned char * in , long sz , int format );
3768- WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_id (WOLFSSL_CTX * ctx ,
3768+ #ifdef WOLF_PRIVATE_KEY_ID
3769+ WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_Id_ex (WOLFSSL_CTX * ctx ,
37693770 const unsigned char * id , long sz ,
37703771 int devId , long keySz );
3772+ /* backward compatibility mapping for old confusable name. */
3773+ #define wolfSSL_CTX_use_PrivateKey_id wolfSSL_CTX_use_PrivateKey_Id_ex
37713774 WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_Id (WOLFSSL_CTX * ctx ,
37723775 const unsigned char * id , long sz ,
37733776 int devId );
37743777 WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_Label (WOLFSSL_CTX * ctx , const char * label ,
37753778 int devId );
3779+ #endif /* WOLF_PRIVATE_KEY_ID */
37763780 WOLFSSL_API int wolfSSL_CTX_use_certificate_chain_buffer_format (WOLFSSL_CTX * ctx ,
37773781 const unsigned char * in , long sz , int format );
37783782 WOLFSSL_API int wolfSSL_CTX_use_certificate_chain_buffer (WOLFSSL_CTX * ctx ,
@@ -3786,9 +3790,11 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
37863790#ifdef WOLFSSL_DUAL_ALG_CERTS
37873791 WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_buffer (WOLFSSL_CTX * ctx ,
37883792 const unsigned char * in , long sz , int format );
3789- WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_id (WOLFSSL_CTX * ctx ,
3793+ WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_Id_ex (WOLFSSL_CTX * ctx ,
37903794 const unsigned char * id , long sz ,
37913795 int devId , long keySz );
3796+ /* backward compatibility mapping for old confusable name. */
3797+ #define wolfSSL_CTX_use_AltPrivateKey_id wolfSSL_CTX_use_AltPrivateKey_Id_ex
37923798 WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_Id (WOLFSSL_CTX * ctx ,
37933799 const unsigned char * id , long sz , int devId );
37943800 WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_Label (WOLFSSL_CTX * ctx ,
@@ -3802,8 +3808,10 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
38023808 const unsigned char * der , int derSz );
38033809 WOLFSSL_API int wolfSSL_use_PrivateKey_buffer (WOLFSSL * ssl , const unsigned char * in ,
38043810 long sz , int format );
3805- WOLFSSL_API int wolfSSL_use_PrivateKey_id (WOLFSSL * ssl , const unsigned char * id ,
3811+ WOLFSSL_API int wolfSSL_use_PrivateKey_Id_ex (WOLFSSL * ssl , const unsigned char * id ,
38063812 long sz , int devId , long keySz );
3813+ /* backward compatibility mapping for old confusable name. */
3814+ #define wolfSSL_use_PrivateKey_id wolfSSL_use_PrivateKey_Id_ex
38073815 WOLFSSL_API int wolfSSL_use_PrivateKey_Id (WOLFSSL * ssl , const unsigned char * id ,
38083816 long sz , int devId );
38093817 WOLFSSL_API int wolfSSL_use_PrivateKey_Label (WOLFSSL * ssl , const char * label , int devId );
@@ -3815,14 +3823,18 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
38153823#ifdef WOLFSSL_DUAL_ALG_CERTS
38163824 WOLFSSL_API int wolfSSL_use_AltPrivateKey_buffer (WOLFSSL * ssl ,
38173825 const unsigned char * in , long sz , int format );
3818- WOLFSSL_API int wolfSSL_use_AltPrivateKey_id (WOLFSSL * ssl ,
3826+ #endif /* WOLFSSL_DUAL_ALG_CERTS */
3827+ #ifdef WOLF_PRIVATE_KEY_ID
3828+ WOLFSSL_API int wolfSSL_use_AltPrivateKey_Id_ex (WOLFSSL * ssl ,
38193829 const unsigned char * id , long sz ,
38203830 int devId , long keySz );
3831+ /* backward compatibility mapping for old confusable name. */
3832+ #define wolfSSL_use_AltPrivateKey_id wolfSSL_use_AltPrivateKey_Id_ex
38213833 WOLFSSL_API int wolfSSL_use_AltPrivateKey_Id (WOLFSSL * ssl ,
38223834 const unsigned char * id , long sz , int devId );
38233835 WOLFSSL_API int wolfSSL_use_AltPrivateKey_Label (WOLFSSL * ssl ,
38243836 const char * label , int devId );
3825- #endif
3837+ #endif /* WOLF_PRIVATE_KEY_ID */
38263838
38273839 #if (defined(OPENSSL_EXTRA ) || defined(OPENSSL_EXTRA_X509_SMALL )) && \
38283840 defined(KEEP_OUR_CERT )
0 commit comments