CFNetwork Diagnostics should show cleartext before TLS

Originator:heath.borders
Number:rdar://22993071 Date Originated:06-Oct-2015 12:36 PM
Status:Open Resolved:
Product:Developer Tools Product Version:iOS9
Classification:Enhancement Reproducible:Not Applicable
 
Summary:
CFNetwork Diagnostics logs lots of interesting information about CFNetwork read and write events. It only shows raw bytes written to the wire, which is virtually useless for TLS connections. Instead, CFNetwork Diagnostics should show bytes written before TLS encryption, and bytes read after TLS decryption.

Steps to Reproduce:
Run an app that uses network connections with the "CFNETWORK_DIAGNOSTICS" environment variable set to “3”.

Expected Results:
The CFNetwork log file should contain plaintext wire traffic as well as encrypted wire traffic.

Actual Results:
The CFNetwork log only includes encrypted wire traffic.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!