Skip to content

Commit 4ac3c89

Browse files
committed
wolfssl/ssl.h: add backward compat mappings for wolfSSL*PrivateKey_id().
1 parent bfca39a commit 4ac3c89

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

wolfssl/ssl.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3769,6 +3769,8 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
37693769
WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_Id_ex(WOLFSSL_CTX* ctx,
37703770
const unsigned char* id, long sz,
37713771
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
37723774
WOLFSSL_API int wolfSSL_CTX_use_PrivateKey_Id(WOLFSSL_CTX* ctx,
37733775
const unsigned char* id, long sz,
37743776
int devId);
@@ -3791,6 +3793,8 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
37913793
WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_Id_ex(WOLFSSL_CTX* ctx,
37923794
const unsigned char* id, long sz,
37933795
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
37943798
WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_Id(WOLFSSL_CTX* ctx,
37953799
const unsigned char* id, long sz, int devId);
37963800
WOLFSSL_API int wolfSSL_CTX_use_AltPrivateKey_Label(WOLFSSL_CTX* ctx,
@@ -3806,6 +3810,8 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
38063810
long sz, int format);
38073811
WOLFSSL_API int wolfSSL_use_PrivateKey_Id_ex(WOLFSSL* ssl, const unsigned char* id,
38083812
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
38093815
WOLFSSL_API int wolfSSL_use_PrivateKey_Id(WOLFSSL* ssl, const unsigned char* id,
38103816
long sz, int devId);
38113817
WOLFSSL_API int wolfSSL_use_PrivateKey_Label(WOLFSSL* ssl, const char* label, int devId);
@@ -3822,6 +3828,8 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL* ssl, void* key, unsigned int len,
38223828
WOLFSSL_API int wolfSSL_use_AltPrivateKey_Id_ex(WOLFSSL* ssl,
38233829
const unsigned char* id, long sz,
38243830
int devId, long keySz);
3831+
/* backward compatibility mapping for old confusable name. */
3832+
#define wolfSSL_use_AltPrivateKey_id wolfSSL_use_AltPrivateKey_Id_ex
38253833
WOLFSSL_API int wolfSSL_use_AltPrivateKey_Id(WOLFSSL* ssl,
38263834
const unsigned char* id, long sz, int devId);
38273835
WOLFSSL_API int wolfSSL_use_AltPrivateKey_Label(WOLFSSL* ssl,

0 commit comments

Comments
 (0)