Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which checks are required to authenticate the intended TLS service?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-4/checkpoint-4-tls-identity/).
Context (verbatim from the page):
"""
Which checks are required to authenticate the intended TLS service?
Validate the certificate path against trusted roots and match the requested hostname.
Accept any signed certificate as long as the bytes are encrypted.
Match only the connected IP address and skip certificate validation.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.