forked from wolfSSL/wolfssl
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:
@@ -7673,11 +7673,11 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WOLF_PRIVATE_KEY_ID
|
#ifdef WOLF_PRIVATE_KEY_ID
|
||||||
if (ssl != NULL && ssl->buffers.keyType == 0) {
|
if (ssl != NULL) {
|
||||||
ssl->buffers.keyType = keyType;
|
ssl->buffers.keyType = keyType;
|
||||||
ssl->buffers.keySz = keySz;
|
ssl->buffers.keySz = keySz;
|
||||||
}
|
}
|
||||||
else if (ctx != NULL && ctx->privateKeyType == 0) {
|
else if (ctx != NULL) {
|
||||||
ctx->privateKeyType = keyType;
|
ctx->privateKeyType = keyType;
|
||||||
ctx->privateKeySz = keySz;
|
ctx->privateKeySz = keySz;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user