Merge pull request #6117 from SparkiDev/priv_key_id_fix
Private Key ID: change to always set priv key type and size
This commit is contained in:
commit
74bad76707
@ -7673,11 +7673,11 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff,
|
||||
}
|
||||
|
||||
#ifdef WOLF_PRIVATE_KEY_ID
|
||||
if (ssl != NULL && ssl->buffers.keyType == 0) {
|
||||
if (ssl != NULL) {
|
||||
ssl->buffers.keyType = keyType;
|
||||
ssl->buffers.keySz = keySz;
|
||||
}
|
||||
else if (ctx != NULL && ctx->privateKeyType == 0) {
|
||||
else if (ctx != NULL) {
|
||||
ctx->privateKeyType = keyType;
|
||||
ctx->privateKeySz = keySz;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user