ssl: fix RSA key matching with Client certs
Avoid a RSA private key lookup for client certificates, the RSA private key is only valid for the server certificate. The lookup based on the client cert resulted in overwriting the server match. Bug: 12042 Change-Id: I60aa79f8f2b941bfde032e20ab11446ae4e6c81b Reviewed-on: https://code.wireshark.org/review/13530 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
623e5365e5
commit
0f5bed39fe
|
@ -5978,7 +5978,7 @@ ssl_dissect_hnd_cert(ssl_common_dissect_t *hf, tvbuff_t *tvb, proto_tree *tree,
|
|||
}
|
||||
|
||||
#if defined(HAVE_LIBGNUTLS) && defined(HAVE_LIBGCRYPT)
|
||||
if (ssl)
|
||||
if (is_from_server && ssl)
|
||||
ssl_find_private_key_by_pubkey(ssl, key_hash, &subjectPublicKeyInfo);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue