Unused Value at packet-ssl.c:2477 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
dissect_ssl3_hnd_finished (/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ssl.c)![]() | ||||||
![]() | ||||||
2441 | dissect_ssl3_hnd_finished(tvbuff_t *tvb, | |||||
2442 | proto_tree *tree, guint32 offset, | |||||
2443 | guint* conv_version) | |||||
2444 | { | |||||
2445 | /* For TLS: | |||||
2446 | * struct { | |||||
2447 | * opaque verify_data[12]; | |||||
2448 | * } Finished; | |||||
2449 | * | |||||
2450 | * For SSLv3: | |||||
2451 | * struct { | |||||
2452 | * opaque md5_hash[16]; | |||||
2453 | * opaque sha_hash[20]; | |||||
2454 | * } Finished; | |||||
2455 | */ | |||||
2456 | ||||||
2457 | /* this all needs a tree, so bail if we don't have one */ | |||||
2458 | if (!tree) | |||||
2459 | { | |||||
2460 | return; | |||||
2461 | } | |||||
2462 | ||||||
2463 | switch(*conv_version) { | |||||
2464 | case SSL_VER_TLS: | |||||
2465 | case SSL_VER_TLSv1DOT1: | |||||
2466 | case SSL_VER_TLSv1DOT2: | |||||
2467 | proto_tree_add_item(tree, hf_ssl_handshake_finished, | |||||
2468 | tvb, offset, 12, FALSE); | |||||
2469 | break; | |||||
2470 | ||||||
2471 | case SSL_VER_SSLv3: | |||||
2472 | proto_tree_add_item(tree, hf_ssl_handshake_md5_hash, | |||||
2473 | tvb, offset, 16, FALSE); | |||||
2474 | offset += 16; | |||||
2475 | proto_tree_add_item(tree, hf_ssl_handshake_sha_hash, | |||||
2476 | tvb, offset, 20, FALSE); | |||||
2477 | offset += 20;
| |||||
2478 | break; | |||||
2479 | } | |||||
2480 | } | |||||
![]() |